diff options
Diffstat (limited to 'plugins/infra/ui/org.eclipse.papyrus.infra.ui/plugin.xml')
-rw-r--r-- | plugins/infra/ui/org.eclipse.papyrus.infra.ui/plugin.xml | 533 |
1 files changed, 533 insertions, 0 deletions
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.ui/plugin.xml b/plugins/infra/ui/org.eclipse.papyrus.infra.ui/plugin.xml new file mode 100644 index 00000000000..638b14b0962 --- /dev/null +++ b/plugins/infra/ui/org.eclipse.papyrus.infra.ui/plugin.xml @@ -0,0 +1,533 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<?eclipse version="3.0"?> + +<!-- + <copyright> + </copyright> + + $Id$ +--> +<plugin> + <extension-point id="papyrusDiagram" name="PapyrusDiagram" schema="schema/papyrusDiagram.exsd"/> + <extension-point id="papyrusContentOutline" name="PapyrusContentOutline" schema="schema/contentOutline.exsd"/> + + <extension + point="org.eclipse.ui.menus"> + <menuContribution + locationURI="menu:org.eclipse.ui.main.menu?after=navigate"> + <menu + id="org.eclipse.papyrus.ui.menu" + label="Papyrus" + tooltip="Papyrus Editor Menu"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </menu> + </menuContribution> + </extension> + <extension + point="org.eclipse.ui.menus"> + + <menuContribution + allPopups="false" + locationURI="menu:org.eclipse.papyrus.ui.menu"> + <menu + label="&Name Edition..." + tooltip="Quick formatting for labels"> + <command + commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingUpperCaseCommand" + label="&To apply uppercase" + style="push"> + <parameter + name="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + value="uppercase"> + </parameter> + </command> + <command + commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingLowerCaseCommand" + label="&To apply lowercase" + style="push"> + <parameter + name="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + value="lowercase"> + </parameter> + </command> + <command + commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingSwitchSpace2UnderscoreCommand" + label="&To switch space and underscore" + style="push"> + <parameter + name="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + value="switchSpace2Underscore"> + </parameter> + </command> + <command + commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingCapitalizeFirstLetterCommand" + label="&To apply camelcase" + style="push"> + <parameter + name="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + value="capitalizeFirstLetter"> + </parameter> + </command> + <command + commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingRemoveSpaceCommand" + label="&To remove or add space" + style="push"> + <parameter + name="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + value="removeSpace"> + </parameter> + </command> + <visibleWhen + checkEnabled="true"> + </visibleWhen> + </menu> + </menuContribution> + </extension> +<extension + id="PapyrusQuickFormattingCommand" + name="QuickFormattingCommand" + point="org.eclipse.ui.commands"> + <command + categoryId="org.eclipse.papyrus.infra.ui.quickformat" + description="The command to quickly format in uppercase the selected labels" + id="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingUpperCaseCommand" + name="Upper Case Quick Format Command"> + <commandParameter + id="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + name="name" + optional="false"> + </commandParameter> + </command> + <command + categoryId="org.eclipse.papyrus.infra.ui.quickformat" + description="The command to quickly format in lowercase the selected labels" + id="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingLowerCaseCommand" + name="Lower Case Quick Format Command"> + <commandParameter + id="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + name="name" + optional="false"> + </commandParameter> + </command> + + <command + categoryId="org.eclipse.papyrus.infra.ui.quickformat" + description="The command to quickly format by switching space and underscore in the selected labels" + id="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingSwitchSpace2UnderscoreCommand" + name="Switch Space to Underscore Quick Format Command"> + <commandParameter + id="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + name="name" + optional="false"> + </commandParameter> + </command> + <command + categoryId="org.eclipse.papyrus.infra.ui.quickformat" + description="The command to quickly format by capitalizing the first letter in the selected labels" + id="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingCapitalizeFirstLetterCommand" + name="Capitalize First Letter Quick Format Command"> + <commandParameter + id="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + name="name" + optional="false"> + </commandParameter> + </command> + <command + categoryId="org.eclipse.papyrus.infra.ui.quickformat" + description="The command to quickly format by removing space in the selected labels" + id="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingRemoveSpaceCommand" + name="Remove Space Quick Format Command"> + <commandParameter + id="org.eclipse.papyrus.infra.ui.menu.quickformatcommandParameter" + name="name" + optional="false"> + </commandParameter> + </command> + <category + description="quickformat routines" + id="org.eclipse.papyrus.infra.ui.quickformat" + name="quickformat routines"> + </category> +</extension> + + <extension + point="org.eclipse.ui.menus"> + <menuContribution + locationURI="toolbar:org.eclipse.ui.main.toolbar"> + <toolbar + id="org.eclipse.papyrus.ui.toolbar"> + <command + commandId="org.eclipse.papyrus.infra.core.commands.dropdowncommand" + icon="icons/papyrus/Papyrus_16x16.gif" + label="Close Diagrams" + style="pulldown" + tooltip="Close Current Editor's Diagrams "> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + </toolbar> + </menuContribution> + <menuContribution + locationURI="toolbar:org.eclipse.papyrus.ui.toolbar"> + </menuContribution> + <menuContribution + locationURI="popup:org.eclipse.papyrus.infra.core.editor.ui.tabmenu?endof=tabcommands"> + <command + commandId="org.eclipse.papyrus.infra.core.commands.closediagram" + label="Close Diagram" + style="push" + tooltip="Close Currently Selected Diagram"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + <command + commandId="org.eclipse.papyrus.infra.core.commands.closealldiagram" + label="Close All Diagrams" + style="push" + tooltip="Close All Opened Diagrams"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + <command + commandId="org.eclipse.papyrus.infra.core.commands.closeothersdiagrams" + label="Close Other Diagrams" + style="push" + tooltip="Close All Diagrams except the selected one"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + <command + commandId="org.eclipse.papyrus.infra.core.sasheditor.command.tabdoubleclick" + label="&Rename Diagram" + style="push" + tooltip="Rename the diagram"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + </menuContribution> + <menuContribution + allPopups="false" + locationURI="menu:org.eclipse.papyrus.infra.core.commands.dropdowncommand"> + <command + commandId="org.eclipse.papyrus.infra.core.commands.closediagram" + style="push" + tooltip="Close Currently Selected Diagram"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + <command + commandId="org.eclipse.papyrus.infra.core.commands.closealldiagram" + label="Close All Diagrams" + style="push" + tooltip="Close All Opened Diagrams"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + <command + commandId="org.eclipse.papyrus.infra.core.commands.closeothersdiagrams" + label="Close Other Diagrams" + style="push" + tooltip="Close All Diagrams except the selected one"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + <command + commandId="org.eclipse.papyrus.infra.core.commands.privatePageLayout" + label="Private Page Layout" + style="toggle" + tooltip="Store editor page layout privately, not shared in the DI file"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension + point="org.eclipse.ui.commands"> + <command + id="org.eclipse.papyrus.infra.core.commands.closealldiagram" + name="Close All Diagrams"> + </command> + <command + id="org.eclipse.papyrus.infra.core.commands.closediagram" + name="Close Diagram"> + </command> + <command + id="org.eclipse.papyrus.infra.core.commands.closeothersdiagrams" + name="Close Other Diagrams"> + </command> + <command + defaultHandler="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.commands.CloseDiagramCommand" + id="org.eclipse.papyrus.infra.core.commands.dropdowncommand" + name="dropdown tool"> + </command> + <command + id="org.eclipse.papyrus.infra.core.sasheditor.command.tabdoubleclick" + name="Rename diagram"> + </command> + <command + id="org.eclipse.papyrus.infra.core.commands.privatePageLayout" + name="Private Page Layout" + description="Store editor page layout privately, not shared in the DI file"> + <state + id="org.eclipse.ui.commands.toggleState" + class="org.eclipse.papyrus.infra.ui.internal.commands.PageLayoutStorageState"> + </state> + </command> + </extension> + <extension + point="org.eclipse.ui.handlers"> + <handler + class="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.commands.CloseDiagramCommand" + commandId="org.eclipse.papyrus.infra.core.commands.closediagram"> + </handler> + <handler + class="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.commands.CloseAllDiagramsCommand" + commandId="org.eclipse.papyrus.infra.core.commands.closealldiagram"> + </handler> + <handler + class="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.commands.CloseOtherDiagramsCommand" + commandId="org.eclipse.papyrus.infra.core.commands.closeothersdiagrams"> + </handler> + <handler + class="org.eclipse.papyrus.infra.ui.internal.commands.TogglePageLayoutStorageHandler" + commandId="org.eclipse.papyrus.infra.core.commands.privatePageLayout"> + </handler> + </extension> + + <extension + point="org.eclipse.papyrus.infra.core.service"> + <serviceFactory + classname="org.eclipse.papyrus.infra.ui.editor.PageIconRegistryServiceFactory" + id="org.eclipse.papyrus.infra.ui.editorsfactory.IPageIconsRegistry" + priority="1" + startKind="startup"> + </serviceFactory> + <serviceFactory + classname="org.eclipse.papyrus.infra.ui.editor.DiSashModelManagerServiceFactory" + description="The concrete implementation of SashContentProviderr and IPageMngr" + id="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.DiSashModelManager" + priority="1" + startKind="startup"> + <dependsOn + serviceKeyRef="org.eclipse.emf.transaction.TransactionalEditingDomain"> + </dependsOn> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.core.resource.ModelSet"> + </dependsOn> + </serviceFactory> + <serviceFactory + classname="org.eclipse.papyrus.infra.ui.editor.DiSashModelMngrServiceFactory" + description="The concrete implementation of SashContentProviderr and IPageMngr" + id="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.DiSashModelMngr" + priority="1" + startKind="startup"> + <dependsOn + serviceKeyRef="org.eclipse.emf.transaction.TransactionalEditingDomain"> + </dependsOn> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.core.resource.ModelSet"> + </dependsOn> + </serviceFactory> + <serviceFactory + classname="org.eclipse.papyrus.infra.ui.editor.PageMngrServiceFactory" + description="IPageMngr allows to add and remove pages to the editor." + id="org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageMngr" + priority="1" + startKind="startup"> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.DiSashModelManager"> + </dependsOn> + </serviceFactory> + <serviceFactory + classname="org.eclipse.papyrus.infra.ui.editor.ContentProviderServiceFactory" + description="The SashContentProvider maintain the structure of pages of the editor." + id="org.eclipse.papyrus.infra.core.sasheditor.contentprovider.ISashWindowsContentProvider" + priority="1" + startKind="startup"> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.DiSashModelManager"> + </dependsOn> + </serviceFactory> + <service + classname="org.eclipse.papyrus.infra.ui.lifecycleevents.SaveAndDirtyService" + description="Service used to maintain the dirty state, and to perform save and saveAs" + id="org.eclipse.papyrus.infra.ui.lifecycleevents.ISaveAndDirtyService" + priority="1" + startKind="startup"> + <dependsOn + serviceKeyRef="org.eclipse.emf.transaction.TransactionalEditingDomain"> + </dependsOn> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.core.resource.ModelSet"> + </dependsOn> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor"> + </dependsOn> + </service> + <serviceFactory + classname="org.eclipse.papyrus.infra.ui.lifecycleevents.LifeCycleEventsProviderServiceFactory" + description="Service allowing to listen on save events." + id="org.eclipse.papyrus.infra.ui.lifecycleevents.ILifeCycleEventsProvider" + priority="1" + startKind="startup"> + <dependsOn + serviceKeyRef=" org.eclipse.papyrus.infra.ui.lifecycleevents.ISaveAndDirtyService"> + </dependsOn> + </serviceFactory> + <serviceFactory + classname="org.eclipse.papyrus.infra.ui.editor.PageMngrServiceFactory" + description="IPageManager allows to add and remove pages to the editor." + id="org.eclipse.papyrus.infra.core.sashwindows.di.service.IPageManager" + priority="10" + startKind="startup"> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.DiSashModelManager"> + </dependsOn> + </serviceFactory> + <service + classname="org.eclipse.papyrus.infra.ui.services.ResourceUpdateService" + id="org.eclipse.papyrus.infra.ui.services.ResourceUpdateService" + priority="1" + startKind="startup"> + <dependsOn + description="This service is used to reopen the IMultiDiagramEditor when changes are detected" + serviceKeyRef="org.eclipse.papyrus.infra.ui.editor.IMultiDiagramEditor"> + </dependsOn> + </service> + <service + classname="org.eclipse.papyrus.infra.ui.services.SaveLayoutBeforeClose" + description="Saves the sash model when closing the editor" + priority="1" + startKind="startup"> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.core.resource.ModelSet"> + </dependsOn> + <dependsOn + serviceKeyRef="org.eclipse.papyrus.infra.ui.services.EditorLifecycleManager"> + </dependsOn> + </service> + </extension> + + <extension + point="org.eclipse.ui.exportWizards"> + <category + id="org.eclipse.papyrus.infra.core.exportcategory" + name="Papyrus"> + </category> + </extension> + <extension + point="org.eclipse.ui.importWizards"> + <category + id="org.eclipse.papyrus.infra.core.importcategory" + name="Papyrus"> + </category> + </extension> + + <extension + point="org.eclipse.papyrus.infra.ui.papyrusContentOutline"> + <contentoutline + class="org.eclipse.papyrus.infra.ui.contentoutline.NestedEditorDelegatedOutlinePage" + description="Generic outline for Papyrus" + priority="2"> + </contentoutline> + </extension> + <extension + point="org.eclipse.papyrus.infra.ui.papyrusDiagram"> + <editorDiagram + factoryClass="org.eclipse.papyrus.infra.ui.editorsfactory.anytype.AnyTypeEditorFactory"> + </editorDiagram> + </extension> + + <extension + point="org.eclipse.core.runtime.preferences"> + <initializer + class="org.eclipse.papyrus.infra.ui.internal.preferences.EditorPreferences$Initializer"> + </initializer> + </extension> + <extension + point="org.eclipse.ui.preferencePages"> + <page + category="org.eclipse.papyrus.infra.core.sasheditor.preferences.generalcategory" + class="org.eclipse.papyrus.infra.ui.internal.preferences.EditorPreferencePage" + id="org.eclipse.papyrus.infra.core.editorPrefs" + name="Editor"> + </page> + </extension> + + <extension + point="org.eclipse.core.expressions.definitions"> + <!-- Is a Papyrus editor active that has a semantic model selection? --> + <definition id="org.eclipse.papyrus.ui.semanticModelActive"> + <with + variable="activeEditor"> + <adapt + type="org.eclipse.papyrus.infra.core.services.ServicesRegistry"> + <test + property="org.eclipse.papyrus.infra.core.hasSemanticModel"> + </test> + </adapt> + </with> + </definition> + </extension> +</plugin> |