Package org.eclipse.jface.text.source.projection

Examples of org.eclipse.jface.text.source.projection.ProjectionViewer.canDoOperation()


        private void toggleFolding() {
            final ISourceViewer sourceViewer = getSourceViewer();
            if (sourceViewer instanceof ProjectionViewer) {
                final ProjectionViewer pv = (ProjectionViewer) sourceViewer;
                if (pv.isProjectionMode() != EditorUtility.isFoldingEnabled()) {
                    if (pv.canDoOperation(ProjectionViewer.TOGGLE)) {
                        pv.doOperation(ProjectionViewer.TOGGLE);
                    }
                }
            }
        }
View Full Code Here


        if (isFoldingEnabled() && (fProjectionSupport == null)) {
          installProjectionSupport();
        }
        ProjectionViewer pv = (ProjectionViewer) getSourceViewer();
        if (pv.isProjectionMode() != isFoldingEnabled()) {
          if (pv.canDoOperation(ProjectionViewer.TOGGLE)) {
            pv.doOperation(ProjectionViewer.TOGGLE);
          }
        }
      }
    }
View Full Code Here

        if (isFoldingEnabled() && (fProjectionSupport == null)) {
          installProjectionSupport();
        }
        ProjectionViewer pv = (ProjectionViewer) getSourceViewer();
        if (pv.isProjectionMode() != isFoldingEnabled()) {
          if (pv.canDoOperation(ProjectionViewer.TOGGLE)) {
            pv.doOperation(ProjectionViewer.TOGGLE);
          }
        }
      }
    }
View Full Code Here

    if (getPreferenceStore().getBoolean(
        PreferenceConstants.EDITOR_FOLDING_ENABLED)) {
      ProjectionViewer viewer = (ProjectionViewer) getSourceViewer();
      if (!viewer.isProjectionMode()) {
        if (viewer.canDoOperation(ProjectionViewer.TOGGLE)) {
          viewer.doOperation(ProjectionViewer.TOGGLE);
        }
      }
    }
    installSematicHighlighting();
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.