/** * Computes, caches and returns the internal state, including enablement. * * @return <code>true</code> if the action is enabled, <code>false</code> * if it is not */ protected boolean computeEnablement() { if (!super.isEnabled()) return false; if (!canModifyEditor()) return false; fLastLine= computeLine(fIsRulerAction); return true; }
/** * Computes, caches and returns the internal state, including enablement. * * @return <code>true</code> if the action is enabled, <code>false</code> * if it is not */ protected boolean computeEnablement() { if (!super.isEnabled()) return false; if (!canModifyEditor()) return false; fLastLine= computeLine(fIsRulerAction); return true; }
/** * Computes, caches and returns the internal state, including enablement. * * @return <code>true</code> if the action is enabled, <code>false</code> * if it is not */ protected boolean computeEnablement() { if (!super.isEnabled()) return false; if (!canModifyEditor()) return false; fLastLine= computeLine(fIsRulerAction); return true; }
/** * Computes, caches and returns the internal state, including enablement. * * @return <code>true</code> if the action is enabled, <code>false</code> * if it is not */ protected boolean computeEnablement() { if (!super.isEnabled()) return false; if (!canModifyEditor()) return false; fLastLine= computeLine(fIsRulerAction); return true; }
/** * Computes, caches and returns the internal state, including enablement. * * @return <code>true</code> if the action is enabled, <code>false</code> * if it is not */ protected boolean computeEnablement() { if (!super.isEnabled()) return false; if (!canModifyEditor()) return false; fLastLine= computeLine(fIsRulerAction); return true; }
if (revertSelection.isEnabled()) menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertSelection); else if (revertBlock.isEnabled()) menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertBlock); if (revertLine.isEnabled()) menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertLine); if (revertDeletion.isEnabled()) menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertDeletion);
if (revertSelection.isEnabled()) menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertSelection); else if (revertBlock.isEnabled()) menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertBlock); if (revertLine.isEnabled()) menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertLine); if (revertDeletion.isEnabled()) menu.appendToGroup(ITextEditorActionConstants.GROUP_RESTORE, revertDeletion);