| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.2"?> |
| <plugin> |
| <!--==========================================--> |
| <!-- Free Form and Fixed Form Fortran Editors --> |
| <!--==========================================--> |
| <extension |
| point="org.eclipse.ui.editors" |
| id="org.eclipse.photran.ui.FortranEditor"> |
| |
| <editor |
| default="true" |
| name="%editor.name" |
| icon="icons/full/obj16/f_file_obj.gif" |
| class="org.eclipse.photran.internal.ui.editor.FortranEditor" |
| contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor" |
| id="org.eclipse.photran.ui.FortranEditor"> |
| <contentTypeBinding |
| contentTypeId="org.eclipse.photran.core.fortranSource" /> |
| </editor> |
| </extension> |
| |
| <!-- Define a Fortran Editor context --> |
| <extension |
| point="org.eclipse.ui.contexts"> |
| <context |
| name="%context.name" |
| parentId="org.eclipse.ui.textEditorScope" |
| id="org.eclipse.photran.ui.FortranEditorContext"> |
| </context> |
| </extension> |
| |
| <!-- Commands, key bindings, and popup menu entries |
| |
| - Comment/Uncomment (Ctrl+/) |
| |
| Each command should have its ID declared as a constant in AbstractFortranEditor, and |
| it must be set up in AbstractFortranEditor#createActions(). |
| |
| For menubarPath, see class ITextEditorActionConstants --> |
| |
| <extension point="org.eclipse.ui.popupMenus"> |
| <viewerContribution |
| targetID="#FortranEditorContextMenu" |
| id="org.eclipse.photran.ui.FixedBlockCommentEditorContribution"> |
| <action |
| label="%action.label" |
| definitionId="org.eclipse.photran.ui.CommentCommand" |
| class="org.eclipse.photran.internal.ui.actions.FortranBlockCommentActionDelegate" |
| menubarPath="group.edit" |
| id="org.eclipse.photran.ui.BlockCommentMenuAction"/> |
| </viewerContribution> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <category |
| name="%category.name" |
| description="%category.description" |
| id="org.eclipse.photran.ui.SourceEditingCategory"> |
| </category> |
| <command |
| categoryId="org.eclipse.photran.ui.SourceEditingCategory" |
| description="%command.description" |
| id="org.eclipse.photran.ui.CommentCommand" |
| name="%command.name"> |
| </command> |
| </extension> |
| <extension point="org.eclipse.ui.actionSets"> |
| <actionSet |
| label="%actionSet.label" |
| description="%actionSet.description" |
| visible="false" |
| id="org.eclipse.photran.ui.CommentUncomment"> |
| <action |
| label="%action.label.0" |
| menubarPath="org.eclipse.photran.ui.source.menu/commentActions" |
| definitionId="org.eclipse.photran.ui.CommentCommand" |
| class="org.eclipse.photran.internal.ui.actions.FortranBlockCommentActionDelegate" |
| id="org.eclipse.photran.ui.BlockCommentAction"> |
| </action> |
| </actionSet> |
| </extension> |
| <extension |
| point="org.eclipse.ui.actionSetPartAssociations"> |
| <actionSetPartAssociation targetID="org.eclipse.photran.ui.CommentUncomment"> |
| <part id="org.eclipse.photran.ui.FortranEditor"/> |
| </actionSetPartAssociation> |
| </extension> |
| <extension |
| point="org.eclipse.ui.bindings"> |
| <!-- win32: M1=CTRL, M2=SHIFT, M3=ALT, M4=- |
| carbon: M1=COMMAND, M2=SHIFT, M3=ALT, M4=CTRL --> |
| <key |
| sequence="M1+/" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| contextId="org.eclipse.photran.ui.FortranEditorContext" |
| commandId="org.eclipse.photran.ui.CommentCommand"/> |
| <key |
| sequence="M1+M2+/" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| contextId="org.eclipse.photran.ui.FortranEditorContext" |
| commandId="org.eclipse.photran.ui.CommentCommand"/> |
| </extension> |
| |
| <!-- Define toggling a breakpoint as the default double-click action --> |
| <extension |
| point="org.eclipse.ui.editorActions"> |
| <editorContribution |
| targetID="org.eclipse.photran.ui.FortranEditor" |
| id="org.eclipse.photran.ui.BreakpointRulerAction"> |
| <action |
| label="%action.label.1" |
| class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate" |
| actionID="RulerDoubleClick" |
| id="org.eclipse.cdt.debug.ui.CEditor.RulerTobbleBreakpointAction"> |
| </action> |
| </editorContribution> |
| </extension> |
| <!-- Enable CDT breakpoint toggle for Photran's editors and model elements --> |
| <extension point="org.eclipse.debug.ui.toggleBreakpointsTargetFactories"> |
| <toggleTargetFactory |
| id="ToggleFortranBreakpointsTargetFactory" |
| class="org.eclipse.cdt.debug.internal.ui.actions.ToggleCBreakpointsTargetFactory"> |
| <enablement> |
| <or> |
| <instanceof value="org.eclipse.photran.internal.ui.editor.FortranEditor"/> |
| </or> |
| </enablement> |
| </toggleTargetFactory> |
| </extension> |
| <!-- Also support PTP parallel breakpoints --> |
| <!--extension point="org.eclipse.core.runtime.adapters"> |
| <factory |
| class="org.eclipse.ptp.debug.internal.ui.actions.RetargettableActionAdapterFactory" |
| adaptableType="org.eclipse.photran.internal.ui.editor.FortranEditor"> |
| <adapter |
| type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget"> |
| </adapter> |
| <adapter |
| type="org.eclipse.debug.ui.actions.IRunToLineTarget"> |
| </adapter> |
| </factory> |
| </extension--> |
| |
| <!--=============================--> |
| <!-- ActionSet-part associations --> |
| <!--=============================--> |
| <extension |
| point="org.eclipse.ui.actionSetPartAssociations"> |
| <actionSetPartAssociation |
| targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation"> |
| <part id="org.eclipse.photran.ui.FortranEditor"/> |
| </actionSetPartAssociation> |
| </extension> |
| |
| <!--=============--> |
| <!-- Source Menu --> |
| <!--=============--> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="menu:org.eclipse.ui.main.menu?after=edit"> |
| <menu |
| label="Source" |
| id="org.eclipse.photran.ui.source.menu"> |
| <separator |
| name="commentActions"> |
| </separator> |
| <!-- SEPARATOR --><separator name="separator1" visible="true" /> |
| <command |
| commandId="org.eclipse.ui.edit.text.shiftRight" |
| label="Shift Right" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.ui.edit.text.shiftLeft" |
| label="Shift Left" |
| style="push"> |
| </command> |
| <separator |
| name="indentationActions"> |
| </separator> |
| <!-- SEPARATOR --><separator name="separator1" visible="true" /> |
| <separator |
| name="additions"> |
| </separator> |
| </menu> |
| </menuContribution> |
| </extension> |
| |
| <!--===================================--> |
| <!-- Fortran-specific preference pages --> |
| <!--===================================--> |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| name="%page.name" |
| class="org.eclipse.photran.internal.ui.preferences.MainFortranPreferencePage" |
| id="org.eclipse.photran.ui.MainFortranPreferencePage"> |
| </page> |
| <page |
| name="%page.name.0" |
| category="org.eclipse.photran.ui.MainFortranPreferencePage" |
| class="org.eclipse.photran.internal.ui.preferences.EditorPreferencePage" |
| id="org.eclipse.photran.ui.FortranEditorPreferencePage"> |
| </page> |
| <page |
| name="%page.name.1" |
| category="org.eclipse.photran.ui.MainFortranPreferencePage" |
| class="org.eclipse.photran.internal.ui.preferences.CDTFortranPreferencePage" |
| id="org.eclipse.photran.ui.CDTFortranPreferencePage"> |
| </page> |
| </extension> |
| |
| <!--=========================================--> |
| <!-- Fortran-specific project property pages --> |
| <!--=========================================--> |
| <extension |
| point="org.eclipse.ui.propertyPages"> |
| <page |
| class="org.eclipse.photran.internal.ui.properties.Page_head_general" |
| id="org.eclipse.photran.ui.newui.Page_head_general" |
| name="%page.name.2" |
| > |
| <!--filter |
| name="projectNature" |
| value="org.eclipse.cdt.core.cnature"> |
| </filter--> |
| <filter |
| name="projectNature" |
| value="org.eclipse.photran.core.fnature"> |
| </filter> |
| <enabledWhen> |
| <or> |
| <instanceof value="org.eclipse.core.resources.IProject"/> |
| <instanceof value="org.eclipse.cdt.core.model.ICProject"/> |
| |
| <instanceof value="org.eclipse.core.resources.IFolder"/> |
| <instanceof value="org.eclipse.cdt.core.model.ICContainer"/> |
| |
| <instanceof value="org.eclipse.core.resources.IFile"/> |
| <instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/> |
| </or> |
| </enabledWhen> |
| </page> |
| <page |
| objectClass="org.eclipse.core.resources.IProject" |
| adaptable="true" |
| name="%page.name.3" |
| class="org.eclipse.photran.internal.ui.properties.SourceFormPropertyPage" |
| id="org.eclipse.photran.ui.SourceFormPropertyPage" |
| category="org.eclipse.photran.ui.newui.Page_head_general"> |
| <filter |
| name="projectNature" |
| value="org.eclipse.photran.core.fnature"> |
| </filter> |
| <enabledWhen> |
| <or> |
| <instanceof value="org.eclipse.core.resources.IProject"/> |
| <instanceof value="org.eclipse.cdt.core.model.ICProject"/> |
| </or> |
| </enabledWhen> |
| </page> |
| </extension> |
| |
| <!--=============================================--> |
| <!-- Source Viewer Configuration Extension Point --> |
| <!--=============================================--> |
| <extension-point |
| id="sourceViewerConfig" |
| name="%extension-point.name" |
| schema="schema/sourceViewerConfig.exsd"/> |
| |
| <!--==============================================--> |
| <!-- Image Associated with Fortran Project Nature --> |
| <!--==============================================--> |
| <extension |
| point="org.eclipse.ui.ide.projectNatureImages"> |
| <image |
| icon="icons/full/obj16/f_ovr.gif" |
| natureId="org.eclipse.photran.core.fnature" |
| id="org.eclipse.photran.ui.fProjectNatureImage"> |
| </image> |
| </extension> |
| |
| <!--==============--> |
| <!-- Welcome Page --> |
| <!--==============--> |
| |
| <!--Intro Overview page addition --> |
| <extension |
| point="org.eclipse.ui.intro.configExtension"> |
| <configExtension |
| content="intro/overviewContent.xml" |
| configId="org.eclipse.ui.intro.universalConfig"> |
| </configExtension> |
| </extension> |
| |
| <!-- Load the VPG plug-in at startup --> |
| <extension point="org.eclipse.ui.startup"> |
| <startup class="org.eclipse.photran.internal.ui.startup.ShowReleaseNotes" /> |
| </extension> |
| |
| </plugin> |