mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
Add context menu ID's for the editor and ruler
(Outliner to follow)
This commit is contained in:
parent
5f42e5c287
commit
9461885204
1 changed files with 14 additions and 0 deletions
|
@ -213,6 +213,10 @@ public class CEditor extends AbstractTextEditor implements ISelectionChangedList
|
||||||
setRangeIndicator(new DefaultRangeIndicator());
|
setRangeIndicator(new DefaultRangeIndicator());
|
||||||
setPreferenceStore(CPlugin.getDefault().getPreferenceStore());
|
setPreferenceStore(CPlugin.getDefault().getPreferenceStore());
|
||||||
|
|
||||||
|
setEditorContextMenuId("#CEditorContext"); //$NON-NLS-1$
|
||||||
|
setRulerContextMenuId("#CEditorRulerContext"); //$NON-NLS-1$
|
||||||
|
//setOutlinerContextMenuId("#CEditorOutlinerContext"); //$NON-NLS-1$
|
||||||
|
|
||||||
fCEditorErrorTickUpdater= new CEditorErrorTickUpdater(this);
|
fCEditorErrorTickUpdater= new CEditorErrorTickUpdater(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1715,4 +1719,14 @@ public class CEditor extends AbstractTextEditor implements ISelectionChangedList
|
||||||
IPreferenceStore store= getPreferenceStore();
|
IPreferenceStore store= getPreferenceStore();
|
||||||
return store.getBoolean(OVERVIEW_RULER);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue