Eclipse-PyUML/pyUml/plugin.xml

122 lines
4.2 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="false"
id="pyUml.projectMenu"
objectClass="org.eclipse.core.internal.resources.Project">
<action
class="pyUML.actions.SyncCodeAction"
definitionId="1"
id="pyUML.1-createCode"
label="Create/Synchronize Code">
</action>
<action
class="pyUML.actions.SyncModelAction"
definitionId="2"
id="pyUML.2-testParsingAction"
label="Create/Synchronize UML Model">
</action>
<action
class="pyUML.actions.ManageViewsAction"
id="pyUML.3-manageViews"
label="Manage Views">
</action>
<action
class="pyUML.actions.OpenModelAction"
id="pyUML.4-OpenModel"
label="Open Model without Sync Run">
</action>
</objectContribution>
<objectContribution
id="pyUML.umlModelMenu"
nameFilter="*.uml"
objectClass="org.eclipse.core.resources.IFile">
<action
class="pyUML.actions.SyncCodeAction"
id="pydev-steering.createCode"
label="Create Code from Model">
</action>
<action
class="pyUML.views.SynchronizeModelByView"
id="pyUML.snycModelByView"
label="Synchronize Model by this View">
</action>
</objectContribution>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar
id="pyUml.mainToolbar">
<command
commandId="pyUml.syncModelCommand"
icon="images/py2uml.png"
id="pyuml.toolbars.synchronizeModel"
tooltip="This starts a synchronization Run to update the UML model by the Python Code in a project.">
</command>
<command
commandId="pyUml.syncCodeCommand"
icon="images/uml2py.png"
id="pyuml.toolbars.synchronizeCode"
tooltip="This starts a synchronization Run to update the UML code by the UML diagram in a project.">
</command>
<command
commandId="pyUml.manageViewsCommand"
icon="images/manageViews.png"
id="pyuml.toolbars.manageViews"
tooltip="Manage Model Views synchronized with Main model">
</command>
<command
commandId="pyUml.openModelCommand"
icon="images/openuml.png"
id="pyuml.toolbars.openModel"
tooltip="Open the (old) UML model for a project without prior Synchronization run.">
</command>
</toolbar>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="pyUml.syncModelCommand"
name="Synchronize Model by Code">
</command>
<command
id="pyUml.syncCodeCommand"
name="Synchronize Code By Model">
</command>
<command
id="pyUml.manageViewsCommand"
name="Manage Views">
</command>
<command
id="pyUml.openModelCommand"
name="Open UML Diagram without Synchronization">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="pyUML.actions.SyncModelHandler"
commandId="pyUml.syncModelCommand">
</handler>
<handler
class="pyUML.actions.SyncCodeHandler"
commandId="pyUml.syncCodeCommand">
</handler>
<handler
class="pyUML.actions.ManageViewsHandler"
commandId="pyUml.manageViewsCommand">
</handler>
<handler
class="pyUML.actions.OpenModelHandler"
commandId="pyUml.openModelCommand">
</handler>
</extension>
</plugin>