[Pydev-cvs] org.python.pydev/src/org/python/pydev/navigator/actions PythonActionProvider.java, 1.1,
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-10-12 00:32:43
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/navigator/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1712/src/org/python/pydev/navigator/actions Modified Files: PythonActionProvider.java Log Message: Index: PythonActionProvider.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/navigator/actions/PythonActionProvider.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PythonActionProvider.java 9 Oct 2006 21:43:17 -0000 1.1 --- PythonActionProvider.java 12 Oct 2006 00:32:41 -0000 1.2 *************** *** 7,10 **** --- 7,13 ---- import org.eclipse.jface.action.IMenuManager; import org.eclipse.ui.IActionBars; + import org.eclipse.ui.IWorkbenchActionConstants; + import org.eclipse.ui.actions.ActionFactory; + import org.eclipse.ui.actions.DeleteResourceAction; import org.eclipse.ui.navigator.CommonActionProvider; import org.eclipse.ui.navigator.ICommonActionConstants; *************** *** 17,20 **** --- 20,24 ---- private OpenPythonNodeAction openAction; + //private DeleteResourceAction deleteResourceAction; @Override *************** *** 24,27 **** --- 28,32 ---- ICommonViewerWorkbenchSite site = (ICommonViewerWorkbenchSite) viewSite; openAction = new OpenPythonNodeAction(site.getPage(), site.getSelectionProvider()); + //deleteResourceAction = new DeleteResourceAction(site.getShell()); } } *************** *** 36,39 **** --- 41,47 ---- actionBars.setGlobalActionHandler(ICommonActionConstants.OPEN, openAction); } + //if(deleteResourceAction.isEnabled()){ + // actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteResourceAction); + //} } *************** *** 45,48 **** --- 53,59 ---- menu.appendToGroup(ICommonMenuConstants.GROUP_OPEN, openAction); } + // if(deleteResourceAction.isEnabled()){ + // menu.appendToGroup(ICommonMenuConstants.GROUP_EDIT, deleteResourceAction); + // } } |