Examples of removePositionCategory()


Examples of org.eclipse.jface.text.IDocument.removePositionCategory()

    public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
      if (oldInput != null) {
        IDocument document = fDocumentProvider.getDocument(oldInput);
        if (document != null) {
          try {
            document.removePositionCategory(SEGMENTS);
          } catch (BadPositionCategoryException e) {
            WodclipsePlugin.getDefault().log(e);
          }
          document.removePositionUpdater(fPositionUpdater);
        }
View Full Code Here

Examples of org.eclipse.jface.text.IDocument.removePositionCategory()

    fIsActive= false;

    for (Iterator it= fDocuments.iterator(); it.hasNext(); ) {
      IDocument doc= (IDocument) it.next();
      try {
        doc.removePositionCategory(getCategory());
      } catch (BadPositionCategoryException e) {
        // won't happen
        Assert.isTrue(false);
      }
      doc.removePositionUpdater(fUpdater);
View Full Code Here

Examples of org.eclipse.jface.text.IDocument.removePositionCategory()

    IDocument document= getDocument();
    if (document != null && fSelectionUpdater != null) {
      document.removePositionUpdater(fSelectionUpdater);
      try {
        document.removePositionCategory(fSelectionCategory);
      } catch (BadPositionCategoryException e) {
        // ignore
      }
    }
    fSelectionUpdater= null;
View Full Code Here

Examples of org.eclipse.jface.text.IDocument.removePositionCategory()

              break;
            }
          }
          if (uninstallCat)
            try {
              doc.removePositionCategory(getCategory());
            } catch (BadPositionCategoryException e) {
              // ignore
            }
        }
        fModel.exit(flags);
View Full Code Here

Examples of org.eclipse.jface.text.IDocument.removePositionCategory()

                    }

                    if (fBracketLevelStack.size() == 0) {
                        document.removePositionUpdater(fUpdater);
                        try {
                            document.removePositionCategory(CATEGORY);
                        } catch (BadPositionCategoryException e) {
                            logger.error(e);
                        }
                    }
                }
View Full Code Here

Examples of org.eclipse.jface.text.IDocument.removePositionCategory()

    IDocument document= getDocument();
    if (document != null && fSelectionUpdater != null) {
      document.removePositionUpdater(fSelectionUpdater);
      try {
        document.removePositionCategory(fSelectionCategory);
      } catch (BadPositionCategoryException e) {
        // ignore
      }
    }
    fSelectionUpdater= null;
View Full Code Here

Examples of org.eclipse.jface.text.IDocument.removePositionCategory()

              break;
            }
          }
          if (uninstallCat)
            try {
              doc.removePositionCategory(getCategory());
            } catch (BadPositionCategoryException e) {
              // ignore
            }
        }
        fModel.exit(flags);
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.