1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

Add context menu ID's for the editor and ruler

(Outliner to follow)
This commit is contained in:
Sebastien Marineau 2002-08-28 22:42:29 +00:00
parent 5f42e5c287
commit 9461885204

View file

@ -213,6 +213,10 @@ public class CEditor extends AbstractTextEditor implements ISelectionChangedList
setRangeIndicator(new DefaultRangeIndicator());
setPreferenceStore(CPlugin.getDefault().getPreferenceStore());
setEditorContextMenuId("#CEditorContext"); //$NON-NLS-1$
setRulerContextMenuId("#CEditorRulerContext"); //$NON-NLS-1$
//setOutlinerContextMenuId("#CEditorOutlinerContext"); //$NON-NLS-1$
fCEditorErrorTickUpdater= new CEditorErrorTickUpdater(this);
}
@ -1715,4 +1719,14 @@ public class CEditor extends AbstractTextEditor implements ISelectionChangedList
IPreferenceStore store= getPreferenceStore();
return store.getBoolean(OVERVIEW_RULER);
}
/** Outliner context menu Id */
protected String fOutlinerContextMenuId;
/**
* Sets the outliner's context menu ID.
*/
protected void setOutlinerContextMenuId(String menuId) {
fOutlinerContextMenuId= menuId;
}
}