Search in sources :

Example 1 with ClearCacheAction

use of org.erlide.ui.editors.erl.actions.ClearCacheAction in project erlide_eclipse by erlang.

the class ErlangEditor method setupClearCacheActions.

private void setupClearCacheActions() {
    if (clearAllCachesAction == null) {
        clearAllCachesAction = new ClearAllCachesAction(ErlangEditorMessages.getBundleForConstructedKeys(), "ClearAllCaches.", this);
        clearAllCachesAction.setActionDefinitionId(IErlangEditorActionDefinitionIds.CLEAR_ALL_CACHES);
        setAction("ClearAllCaches", clearAllCachesAction);
        markAsStateDependentAction("ClearAllCaches", false);
        markAsSelectionDependentAction("ClearAllCaches", false);
    }
    if (clearCacheAction == null) {
        clearCacheAction = new ClearCacheAction(ErlangEditorMessages.getBundleForConstructedKeys(), "ClearCache.", this);
        clearCacheAction.setActionDefinitionId(IErlangEditorActionDefinitionIds.CLEAR_CACHE);
        setAction("ClearCache", clearCacheAction);
        markAsStateDependentAction("ClearCache", true);
        markAsSelectionDependentAction("ClearCache", true);
    }
}
Also used : ClearAllCachesAction(org.erlide.ui.editors.erl.actions.ClearAllCachesAction) ClearCacheAction(org.erlide.ui.editors.erl.actions.ClearCacheAction)

Aggregations

ClearAllCachesAction (org.erlide.ui.editors.erl.actions.ClearAllCachesAction)1 ClearCacheAction (org.erlide.ui.editors.erl.actions.ClearCacheAction)1