Examples of collapse()


Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.collapse()

      FuzzyXMLNode selectedNode = _idToNodeMap.get(target);
      ProjectionAnnotationModel model = ((ProjectionViewer) _editor.getViewer()).getProjectionAnnotationModel();
      ProjectionAnnotation lastAnnotation = getAnnotationForNode(selectedNode, model);
      if (lastAnnotation != null) {
        model.collapse(lastAnnotation);
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.collapse()

                    int start = ps.getStartLineIndex();
                    int end = ps.getEndLineIndex();

                    for (int i = start; i <= end; i++) {
                        if (i == line) {
                            model.collapse(element);
                            break;
                        }
                    }
                }
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.collapse()

                            elements.add(element);

                        } else {
                            //ok, the one in the top has to be collapsed ( and this one added )
                            PyProjectionAnnotation top = (PyProjectionAnnotation) elements.remove(elements.size() - 1);
                            model.collapse(top);
                            elements.add(element);
                        }
                    }
                }
                if (elements.size() > 0) {
View Full Code Here

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.collapse()

                        }
                    }
                }
                if (elements.size() > 0) {
                    PyProjectionAnnotation top = (PyProjectionAnnotation) elements.remove(elements.size() - 1);
                    model.collapse(top);
                }
            }
        }
    }
}
View Full Code Here

Examples of org.eclipse.nebula.widgets.gallery.DefaultGalleryGroupRenderer.collapse()

    final Action colapseA = new Action() {
      public void run() {
        final CTabItem[] items = ImagesView.this.fld.getItems();
        for (final CTabItem i : items) {
          final Collapser rr = (Collapser) i.getData("ga");
          rr.collapse();
        }
      }

    };
View Full Code Here

Examples of org.eclipse.sapphire.modeling.annotations.Whitespace.collapse()

            this.collapse = false;
        }
        else
        {
            this.trim = ws.trim();
            this.collapse = ws.collapse();
        }
    }

    @Override
    public String normalize( final String str )
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem.collapse()

  @Test
  public void testOpen() throws Exception {
    // expand first level
    SWTBotTree tree = getOrOpenView().bot().tree();
    SWTBotTreeItem item = myRepoViewUtil.getRootItem(tree, repositoryFile);
    item.collapse();
    refreshAndWait();
    item = myRepoViewUtil.getRootItem(tree, repositoryFile);
    assertTrue("Item should not be expanded", !item.isExpanded());
    item.doubleClick();
    assertTrue("Item should be expanded", item.isExpanded());
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem.collapse()

    SWTBotTree repositoriesTree = bot.viewByTitle("Git Repositories").bot()
        .tree();
    SWTBotTreeItem egitRoot = repositoriesTree.getAllItems()[0];
    egitRoot.expand();
    egitRoot.collapse();
    egitRoot.expand();
    SWTBotTreeItem remoteBranch = egitRoot.expandNode("Branches")
        .expandNode("Remote Branches");
    SWTBotTreeItem branchNode = remoteBranch.getNode("origin/stable-0.7");
    branchNode.select();
View Full Code Here

Examples of org.jboss.dna.jcr.xpath.XPath.Component.collapse()

        List<AttributeNameTest> results = new ArrayList<AttributeNameTest>();
        boolean failed = false;
        if (binary instanceof Union) {
            for (int i = 0; i != 2; ++i) {
                Component comp = i == 0 ? binary.getLeft() : binary.getRight();
                comp = comp.collapse();
                if (comp instanceof Union) {
                    results.addAll(extractAttributeNames((BinaryComponent)comp));
                } else if (comp instanceof AttributeNameTest) {
                    results.add((AttributeNameTest)comp);
                } else if (comp instanceof NameTest) {
View Full Code Here

Examples of org.jboss.dna.jcr.xpath.XPath.Component.collapse()

        List<NameTest> results = new ArrayList<NameTest>();
        boolean failed = false;
        if (binary instanceof Union) {
            for (int i = 0; i != 2; ++i) {
                Component comp = i == 0 ? binary.getLeft() : binary.getRight();
                comp = comp.collapse();
                if (comp instanceof Union) {
                    results.addAll(extractElementNames((BinaryComponent)comp));
                } else if (comp instanceof AttributeNameTest) {
                    // ignore these ...
                } else if (comp instanceof NameTest) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.