[easystruts-cvs] org.sf.easyexplore plugin.xml,1.2,1.3
Brought to you by:
eboudrant,
pombredanne
From: Philippe O. <pom...@us...> - 2006-02-07 01:34:15
|
Update of /cvsroot/easystruts/org.sf.easyexplore In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2126 Modified Files: plugin.xml Log Message: Added support for Key bindings for the the explore and command actions. Using a hack...with a double definition of the action both as a pop-menu and action set to wor around this eclipse limitation. Explore maps to Shift+Esc X and Command maps to Shift+Esc C.... Index: plugin.xml =================================================================== RCS file: /cvsroot/easystruts/org.sf.easyexplore/plugin.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** plugin.xml 27 Jan 2006 02:31:11 -0000 1.2 --- plugin.xml 7 Feb 2006 01:33:59 -0000 1.3 *************** *** 12,28 **** objectClass="org.eclipse.core.runtime.IAdaptable" id="org.sf.easyexplore.contribution"> <visibility> <or> ! <objectClass ! name="org.eclipse.core.resources.IResource" /> ! <objectClass ! name="org.eclipse.ui.model.IWorkbenchAdapter" /> ! <objectClass ! name="org.eclipse.jdt.core.ICompilationUnit" /> </or> ! </visibility> <action class="org.sf.easyexplore.actions.EasyExploreAction" ! definitionId="org.sf.easyexplore.actions.EasyExploreCommand" enablesFor="1" icon="icon/easyexplore.gif" --- 12,30 ---- objectClass="org.eclipse.core.runtime.IAdaptable" id="org.sf.easyexplore.contribution"> + <!-- <visibility> <or> ! <objectClass name="org.eclipse.core.resources.IResource" /> ! <objectClass name="org.eclipse.ui.model.IWorkbenchAdapter" /> ! <objectClass name="org.eclipse.jdt.core.ICompilationUnit" /> ! <objectClass name="org.eclipse.core.resources.IProject"/> ! <objectClass name="org.eclipse.core.resources.IFolder"/> ! <objectClass name="org.eclipse.core.resources.IFile"/> </or> ! </visibility> ! --> <action class="org.sf.easyexplore.actions.EasyExploreAction" ! definitionId="org.sf.easyexplore.actions.EasyExploreActionCommand" enablesFor="1" icon="icon/easyexplore.gif" *************** *** 33,37 **** <action class="org.sf.easyexplore.actions.EasyCommandAction" ! definitionId="org.sf.easyexplore.actions.EasyCommandCommand" enablesFor="1" icon="icon/easycommand.gif" --- 35,39 ---- <action class="org.sf.easyexplore.actions.EasyCommandAction" ! definitionId="org.sf.easyexplore.actions.EasyCommandActionCommand" enablesFor="1" icon="icon/easycommand.gif" *************** *** 43,74 **** </extension> <extension - point="org.eclipse.ui.bindings"> - <key - commandId="org.sf.easyexplore.actions.EasyCommandCommand" - contextId="org.eclipse.ui.contexts.dialogAndWindow" - schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" - sequence="M1+M2+A"/> - <key - commandId="org.sf.easyexplore.actions.EasyExploreCommand" - contextId="org.eclipse.ui.contexts.dialogAndWindow" - schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" - sequence="M1+M2+Q"/> - </extension> - <extension point="org.eclipse.ui.commands"> <category ! description="Open an Explorer and a command prompt" id="org.sf.easyexplore.category" name="EasyExplore"/> <command categoryId="org.sf.easyexplore.category" ! description="Execute a system command on a file" ! id="org.sf.easyexplore.actions.EasyCommandCommand" name="EasyCommand"/> <command categoryId="org.sf.easyexplore.category" ! description="Open a file explorer on a file" ! id="org.sf.easyexplore.actions.EasyExploreCommand" name="EasyExplore"/> </extension> </plugin> \ No newline at end of file --- 45,124 ---- </extension> <extension point="org.eclipse.ui.commands"> <category ! description="EasyExplore: easy os integration" id="org.sf.easyexplore.category" name="EasyExplore"/> <command categoryId="org.sf.easyexplore.category" ! description="Execute a system command on a file" ! id="org.sf.easyexplore.actions.EasyCommandActionCommand" name="EasyCommand"/> <command categoryId="org.sf.easyexplore.category" ! description="Open an explorer on a file" ! id="org.sf.easyexplore.actions.EasyExploreActionCommand" name="EasyExplore"/> </extension> + <extension + point="org.eclipse.ui.bindings"> + <key + commandId="org.sf.easyexplore.actions.EasyCommandActionCommand" + contextId="org.eclipse.ui.contexts.dialogAndWindow" + schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" + sequence="SHIFT+ESC C"/> + <key + commandId="org.sf.easyexplore.actions.EasyExploreActionCommand" + contextId="org.eclipse.ui.contexts.dialogAndWindow" + schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" + sequence="SHIFT+ESC X"/> + </extension> + <extension point="org.eclipse.ui.actionSets"> + <actionSet id="org.sf.easyexplore.contribution.actionSet" label="EasyExplore" visible="true"> + <action + class="org.sf.easyexplore.actions.EasyExploreAction" + definitionId="org.sf.easyexplore.actions.EasyExploreActionCommand" + enablesFor="1" + id="org.sf.easyexplore.actions.EasyExploreActionSet" + label="Easy explore here..."> + </action> + <action + class="org.sf.easyexplore.actions.EasyCommandAction" + definitionId="org.sf.easyexplore.actions.EasyCommandActionCommand" + enablesFor="1" + id="org.sf.easyexplore.actions.EasyCommandActionSet" + label="Easy command here..." > + </action> + + </actionSet> + </extension> + <!-- + <extension + point="org.eclipse.ui.perspectiveExtensions"> + <perspectiveExtension targetID="org.eclipse.ui.resourcePerspective"> + <actionSet id="org.sf.easyexplore.contribution.actionSet"/> + </perspectiveExtension> + <perspectiveExtension targetID="org.eclipse.debug.ui.DebugPerspective"> + <actionSet id="org.sf.easyexplore.contribution.actionSet"/> + </perspectiveExtension> + <perspectiveExtension targetID="org.eclipse.jdt.ui.JavaBrowsingPerspective"> + <actionSet id="org.sf.easyexplore.contribution.actionSet"/> + </perspectiveExtension> + <perspectiveExtension targetID="org.eclipse.jdt.ui.JavaPerspective"> + <actionSet id="org.sf.easyexplore.contribution.actionSet"/> + </perspectiveExtension> + <perspectiveExtension targetID="org.eclipse.jdt.ui.JavaHierarchyPerspective"> + <actionSet id="org.sf.easyexplore.contribution.actionSet"/> + </perspectiveExtension> + <perspectiveExtension targetID="org.eclipse.pde.ui.PDEPerspective"> + <actionSet id="org.sf.easyexplore.contribution.actionSet"/> + </perspectiveExtension> + <perspectiveExtension targetID="org.eclipse.team.cvs.ui.cvsPerspective"> + <actionSet id="org.sf.easyexplore.contribution.actionSet"/> + </perspectiveExtension> + <perspectiveExtension targetID="org.eclipse.team.ui.TeamSynchronizingPerspective"> + <actionSet id="org.sf.easyexplore.contribution.actionSet"/> + </perspectiveExtension> + </extension> + --> </plugin> \ No newline at end of file |