@Override public boolean canDoOperation(int operation) { if (operation == SHOW_OUTLINE) return fOutlinePresenter != null; if (operation == OPEN_STRUCTURE) return fStructurePresenter != null; if (operation == SHOW_HIERARCHY) return fHierarchyPresenter != null; return super.canDoOperation(operation); }
public boolean canDoOperation(int operation) { if (operation == SHOW_OUTLINE) return fOutlinePresenter != null; if (operation == OPEN_STRUCTURE) return fStructurePresenter != null; if (operation == SHOW_HIERARCHY) return fHierarchyPresenter != null; return super.canDoOperation(operation); }
@Override public boolean canDoOperation(int operation) { // Verify quick outline operation if (operation == QUICK_OUTLINE) { if (fOutlinePresenter == null) { return false; } return true; } // Verfify default operations return super.canDoOperation(operation); }
@Override public boolean canDoOperation(int operation) { if (operation == QUICK_OUTLINE && outlinePresenter != null) { return true; } return super.canDoOperation(operation); }
@Override public boolean canDoOperation(int operation) { if (operation == SHOW_OUTLINE) return fOutlinePresenter != null; if (operation == OPEN_STRUCTURE) return fStructurePresenter != null; if (operation == SHOW_HIERARCHY) return fHierarchyPresenter != null; return super.canDoOperation(operation); }
@Override public boolean canDoOperation(int operation) { if (operation == OpenQuickOutlineHandler.QUICK_OUTLINE && outlinePresenter != null) { return true; } return super.canDoOperation(operation); }
/** * Does the actual toggling of projection. */ private void toggleFolding() { ISourceViewer sourceViewer= getSourceViewer(); if (sourceViewer instanceof ProjectionViewer) { ProjectionViewer pv= (ProjectionViewer) sourceViewer; if (pv.isProjectionMode() != isFoldingEnabled()) { if (pv.canDoOperation(ProjectionViewer.TOGGLE)) pv.doOperation(ProjectionViewer.TOGGLE); } } }
/** * Does the actual toggling of projection. */ private void toggleFolding() { ISourceViewer sourceViewer= getSourceViewer(); if (sourceViewer instanceof ProjectionViewer) { ProjectionViewer pv= (ProjectionViewer) sourceViewer; if (pv.isProjectionMode() != isFoldingEnabled()) { if (pv.canDoOperation(ProjectionViewer.TOGGLE)) pv.doOperation(ProjectionViewer.TOGGLE); } } }
/** * Does the actual toggling of projection. */ private void toggleFolding() { ISourceViewer sourceViewer= getSourceViewer(); if (sourceViewer instanceof ProjectionViewer) { ProjectionViewer pv= (ProjectionViewer) sourceViewer; if (pv.isProjectionMode() != isFoldingEnabled()) { if (pv.canDoOperation(ProjectionViewer.TOGGLE)) pv.doOperation(ProjectionViewer.TOGGLE); } } }
ProjectionViewer pv = (ProjectionViewer) sourceViewer; if (pv.isProjectionMode() != isFoldingEnabled()) { if (pv.canDoOperation(ProjectionViewer.TOGGLE)) { pv.doOperation(ProjectionViewer.TOGGLE);
switch (operation) { case TOGGLE: if (canDoOperation(TOGGLE)) { if (!isProjectionMode()) { enableProjection();
switch (operation) { case TOGGLE: if (canDoOperation(TOGGLE)) { if (!isProjectionMode()) { enableProjection();