| /* |
| * Copyright (c) 2007 Borland Software Corporation |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * bblajer (Borland) - initial API and implementation |
| */ |
| |
| «IMPORT "http://www.eclipse.org/gmf/2008/GenModel"» |
| «IMPORT "http://www.eclipse.org/emf/2002/Ecore"» |
| |
| «DEFINE plugin FOR gmfgen::GenPlugin-» |
| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.0"?> |
| «EXPAND xpt::Common::xcopyright FOR editorGen-» |
| <plugin> |
| «EXPAND fileTypes-» |
| «EXPAND xpt::editor::extensions::extensions FOR editorGen-» |
| «EXPAND xpt::application::extensions::extensions FOR editorGen.application-» |
| «EXPAND menu-» |
| «EXPAND xpt::navigator::extensions::extensions FOR editorGen.navigator-» |
| «EXPAND xpt::propsheet::extensions::extensions FOR editorGen.propertySheet-» |
| «EXPAND xpt::providers::extensions::extensions FOR editorGen-» |
| «EXPAND xpt::ConstraintProviders::extensions FOR editorGen-» |
| «EXPAND xpt::diagram::preferences::extensions::extensions FOR editorGen.diagram-» |
| |
| «EXPAND additions-» |
| </plugin> |
| «ENDDEFINE» |
| |
| «DEFINE fileTypes FOR gmfgen::GenPlugin-» |
| <extension point="org.eclipse.team.core.fileTypes"> |
| «EXPAND xpt::Common::xmlGeneratedTag» |
| <fileTypes |
| type="text" |
| extension="«editorGen.diagramFileExtension»"> |
| </fileTypes> |
| </extension> |
| «ENDDEFINE» |
| |
| «DEFINE menu FOR gmfgen::GenPlugin-» |
| <extension point="org.eclipse.ui.popupMenus"> |
| «EXPAND xpt::Common::xmlGeneratedTag» |
| «IF null == editorGen.application-» |
| <objectContribution |
| id="«iD».ui.objectContribution.IFile1" |
| nameFilter="*.«editorGen.domainFileExtension»" |
| objectClass="org.eclipse.core.resources.IFile"> |
| <action |
| label="%_UI_Menu_InitDiagramFile_label" |
| class="«editorGen.diagram.getInitDiagramFileActionQualifiedClassName()»" |
| menubarPath="additions" |
| enablesFor="1" |
| id="«editorGen.diagram.getInitDiagramFileActionQualifiedClassName()»ID"> |
| </action> |
| </objectContribution> |
| «IF !editorGen.editor.eclipseEditor-» |
| <objectContribution |
| id="«iD».ui.objectContribution.IFile2" |
| nameFilter="*.«editorGen.diagramFileExtension»" |
| objectClass="org.eclipse.core.resources.IFile"> |
| <action |
| label="%_UI_Menu_OpenDiagramView_label" |
| class="«EXPAND xpt::editor::OpenDiagramInViewAction::qualifiedClassName FOR editorGen.editor»" |
| menubarPath="additions" |
| enablesFor="1" |
| id="«EXPAND xpt::editor::OpenDiagramInViewAction::qualifiedClassName FOR editorGen.editor»ID"> |
| </action> |
| </objectContribution> |
| «ENDIF-» |
| «ENDIF-» |
| <objectContribution |
| adaptable="false" |
| id="«iD».ui.objectContribution.«editorGen.diagram.editPartClassName»2" |
| objectClass="«editorGen.diagram.getEditPartQualifiedClassName()»"> |
| <action |
| class="«editorGen.diagram.getLoadResourceActionQualifiedClassName()»" |
| enablesFor="1" |
| id="«editorGen.diagram.getLoadResourceActionQualifiedClassName()»ID" |
| label="%loadResourceActionLabel" |
| menubarPath="additions"> |
| </action> |
| </objectContribution> |
| </extension> |
| «ENDDEFINE» |
| |
| «DEFINE additions FOR gmfgen::GenPlugin-» |
| «ENDDEFINE» |