| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.0"?> |
| |
| <plugin> |
| |
| <extension |
| point="org.eclipse.ui.editors"> |
| <editor |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" |
| contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
| default="true" |
| extensions="fxgraph" |
| icon="icons/page_white_coldfusion.png" |
| id="org.eclipse.fx.ide.fxgraph.FXGraph" |
| name="%editor.name"> |
| </editor> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" |
| commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.fx.ide.fxgraph.FXGraph.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| <handler |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" |
| commandId="org.eclipse.fx.ide.fxgraph.FXGraph.validate"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.fx.ide.fxgraph.FXGraph.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| <extension point="org.eclipse.core.expressions.definitions"> |
| <definition id="org.eclipse.fx.ide.fxgraph.FXGraph.Editor.opened"> |
| <and> |
| <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> |
| <with variable="activeEditor"> |
| <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
| value="org.eclipse.fx.ide.fxgraph.FXGraph" |
| forcePluginActivation="true"/> |
| </with> |
| </and> |
| </definition> |
| </extension> |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| category="org.eclipse.fx.ide.ui" |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" |
| id="org.eclipse.fx.ide.fxgraph.FXGraph" |
| name="%page.name"> |
| <keywordReference id="org.eclipse.fx.ide.fxgraph.ui.keyword_FXGraph"/> |
| </page> |
| <page |
| category="org.eclipse.fx.ide.fxgraph.FXGraph" |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" |
| id="org.eclipse.fx.ide.fxgraph.FXGraph.coloring" |
| name="%page.name.0"> |
| <keywordReference id="org.eclipse.fx.ide.fxgraph.ui.keyword_FXGraph"/> |
| </page> |
| <page |
| category="org.eclipse.fx.ide.fxgraph.FXGraph" |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" |
| id="org.eclipse.fx.ide.fxgraph.FXGraph.templates" |
| name="%page.name.1"> |
| <keywordReference id="org.eclipse.fx.ide.fxgraph.ui.keyword_FXGraph"/> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.ui.propertyPages"> |
| <page |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" |
| id="org.eclipse.fx.ide.fxgraph.FXGraph" |
| name="%page.name.2"> |
| <keywordReference id="org.eclipse.fx.ide.fxgraph.ui.keyword_FXGraph"/> |
| <enabledWhen> |
| <adapt type="org.eclipse.core.resources.IProject"/> |
| </enabledWhen> |
| <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.ui.keywords"> |
| <keyword |
| id="org.eclipse.fx.ide.fxgraph.ui.keyword_FXGraph" |
| label="%keyword.label"/> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| description="%command.description" |
| id="org.eclipse.fx.ide.fxgraph.FXGraph.validate" |
| name="%command.name"> |
| </command> |
| <command |
| id="org.eclipse.fx.ide.fxgraph.ui.fxgraphconvert" |
| name="Convert to FXGraph"> |
| </command> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:#TextEditorContext?after=group.edit"> |
| <command |
| commandId="org.eclipse.fx.ide.fxgraph.FXGraph.validate" |
| style="push" |
| tooltip="%command.tooltip"> |
| <visibleWhen checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.fx.ide.fxgraph.FXGraph.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| <!--menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.jdt.ui.PackageExplorer?after=additions"> |
| <command |
| commandId="org.eclipse.fx.ide.fxgraph.ui.fxgraphconvert" |
| label="Convert to FXGraph" |
| style="push"> |
| </command> |
| </menuContribution--> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution locationURI="popup:#TextEditorContext?endof=group.find"> |
| <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
| <visibleWhen checkEnabled="false"> |
| <reference definitionId="org.eclipse.fx.ide.fxgraph.FXGraph.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <extension point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" |
| commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.fx.ide.fxgraph.FXGraph.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| |
| <!-- adding resource factories --> |
| |
| <extension |
| point="org.eclipse.emf.ecore.extension_parser"> |
| <parser |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
| type="fxgraph"> |
| </parser> |
| </extension> |
| <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
| <resourceServiceProvider |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
| uriExtension="fxgraph"> |
| </resourceServiceProvider> |
| </extension> |
| |
| |
| |
| <extension |
| point="org.eclipse.xtext.builder.participant"> |
| <participant |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant"> |
| </participant> |
| </extension> |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| category="org.eclipse.fx.ide.fxgraph.FXGraph" |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" |
| id="org.eclipse.fx.ide.fxgraph.FXGraph.compiler.preferencePage" |
| name="%page.name.3"> |
| <keywordReference id="org.eclipse.fx.ide.fxgraph.ui.keyword_FXGraph"/> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.ui.propertyPages"> |
| <page |
| category="org.eclipse.fx.ide.fxgraph.FXGraph" |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" |
| id="org.eclipse.fx.ide.fxgraph.FXGraph.compiler.propertyPage" |
| name="%page.name.4"> |
| <keywordReference id="org.eclipse.fx.ide.fxgraph.ui.keyword_FXGraph"/> |
| <enabledWhen> |
| <adapt type="org.eclipse.core.resources.IProject"/> |
| </enabledWhen> |
| <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> |
| </page> |
| </extension> |
| |
| <!-- Quick Outline --> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" |
| commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.fx.ide.fxgraph.FXGraph.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| description="%command.description.0" |
| id="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
| name="%command.name.0"> |
| </command> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:#TextEditorContext?after=group.open"> |
| <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
| style="push" |
| tooltip="%command.tooltip.0"> |
| <visibleWhen checkEnabled="false"> |
| <reference definitionId="org.eclipse.fx.ide.fxgraph.FXGraph.Editor.opened"/> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <!-- quickfix marker resolution generator --> |
| <extension |
| point="org.eclipse.ui.ide.markerResolution"> |
| <markerResolutionGenerator |
| class="org.eclipse.fx.ide.fxgraph.ui.FXGraphExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"> |
| </markerResolutionGenerator> |
| </extension> |
| <extension |
| point="org.eclipse.ui.newWizards"> |
| <wizard |
| category="org.eclipse.fx.ide" |
| class="org.eclipse.fx.ide.fxgraph.ui.wizards.NewFXGraphWizard" |
| icon="icons/page_white_coldfusion.png" |
| id="org.eclipse.fx.ide.fxgraph.ui.new" |
| name="%wizard.name"> |
| </wizard> |
| </extension> |
| <extension |
| point="org.eclipse.core.runtime.adapters"> |
| <factory |
| adaptableType="org.eclipse.xtext.xbase.ui.editor.XbaseEditor" |
| class="org.eclipse.fx.ide.fxgraph.ui.internal.FXMLAdapterFactory"> |
| <adapter |
| type="org.eclipse.fx.ide.ui.editor.IFXPreviewAdapter"> |
| </adapter> |
| <adapter |
| type="org.eclipse.fx.ide.ui.editor.IFXMLProviderAdapter"> |
| </adapter> |
| </factory> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| defaultHandler="org.eclipse.fx.ide.fxgraph.ui.handlers.ConvertFXMLHandler" |
| id="org.eclipse.fx.ide.fxgraph.ui.fxml" |
| name="Convert to FXGraph"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| allPopups="false" |
| locationURI="popup:org.eclipse.jdt.ui.PackageExplorer?after=additions"> |
| <command |
| commandId="org.eclipse.fx.ide.fxgraph.ui.fxml" |
| label="Convert FXML to FXGraph" |
| style="push"> |
| <visibleWhen |
| checkEnabled="true"> |
| <with |
| variable="activeMenuSelection"> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt |
| type="org.eclipse.core.resources.IFile"> |
| <test |
| property="org.eclipse.core.resources.name" |
| value="*.fxml"> |
| </test> |
| </adapt> |
| </iterate> |
| <count |
| value="1"> |
| </count> |
| </with> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| </plugin> |