Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Editor context menu ID patch

Index: CEditor.java
===================================================================
RCS file:
/home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEdito
r.java,v
retrieving revision 1.4
I'm commiting the following change to the C editor to 
allow other plugins (e.g. the debugger) to contribute
menu items to the editor and ruler context menus.

Sebastien


diff -c -r1.4 CEditor.java
*** CEditor.java	9 Aug 2002 21:08:22 -0000	1.4
--- CEditor.java	28 Aug 2002 22:40:03 -0000
***************
*** 213,218 ****
--- 213,222 ----
  		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);
  
  	}
***************
*** 1714,1718 ****
--- 1718,1732 ----
  	private boolean isOverviewRulerVisible() {
  		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;
  	}
  }


Back to the top