|
Re: Language default editor [message #1732774 is a reply to message #1732770] |
Fri, 20 May 2016 07:27 |
|
Hi,
i cannot follow you
do you mean
<editor
class="org.xtext.example.mydsl1.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
default="true"
extensions="mydsl1"
id="org.xtext.example.mydsl1.MyDsl"
name="MyDsl Editor">
</editor>
that default="true" is not taken into account, even in a new workspace?
and what is the "old" and the "new" version of xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Fri, 20 May 2016 07:35] Report message to a moderator
|
|
|
Re: Language default editor [message #1732890 is a reply to message #1732774] |
Sun, 22 May 2016 07:39 |
Yves LEDUC Messages: 56 Registered: May 2015 |
Member |
|
|
Thanks
Version Eclipse DSL Tools Mars.2 versus Eclipse DSL Tools Mars.1
Yes, even with a new workspace.
Yes it is the default=true (defined with the wizard).
Here is the beginning of my plugin.xml file.
<plugin>
<extension
point="org.eclipse.ui.editors">
<editor
class="com.infoly.eclipse.xtext.algo.ui.AlgorithmicExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
default="true"
extensions="alg,algo"
icon="icons/AlgoMico.png"
id="com.infoly.eclipse.xtext.algo.Algorithmic"
name="Algorithmic Editor">
</editor>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.infoly.eclipse.xtext.algo.ui.AlgorithmicExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
<activeWhen>
<reference
definitionId="com.infoly.eclipse.xtext.algo.Algorithmic.Editor.opened">
</reference>
</activeWhen>
</handler>
<handler
class="com.infoly.eclipse.xtext.algo.ui.AlgorithmicExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
commandId="com.infoly.eclipse.xtext.algo.Algorithmic.validate">
<activeWhen>
<reference
definitionId="com.infoly.eclipse.xtext.algo.Algorithmic.Editor.opened">
</reference>
</activeWhen>
</handler>
<!-- copy qualified name -->
<handler
class="com.infoly.eclipse.xtext.algo.ui.AlgorithmicExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedNameHandler"
commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName">
<activeWhen>
<reference definitionId="com.infoly.eclipse.xtext.algo.Algorithmic.Editor.opened" />
</activeWhen>
</handler>
<handler
class="com.infoly.eclipse.xtext.algo.ui.AlgorithmicExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedNameHandler"
commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName">
<activeWhen>
<and>
<reference definitionId="com.infoly.eclipse.xtext.algo.Algorithmic.XtextEditor.opened" />
<iterate>
<adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" />
</iterate>
</and>
</activeWhen>
</handler>
</extension>
<extension point="org.eclipse.core.expressions.definitions">
<definition id="com.infoly.eclipse.xtext.algo.Algorithmic.Editor.opened">
<and>
<reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
<with variable="activeEditor">
<test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
value="com.infoly.eclipse.xtext.algo.Algorithmic"
forcePluginActivation="true"/>
</with>
</and>
</definition>
<definition id="com.infoly.eclipse.xtext.algo.Algorithmic.XtextEditor.opened">
<and>
<reference definitionId="isXtextEditorActive"/>
<with variable="activeEditor">
<test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
value="com.infoly.eclipse.xtext.algo.Algorithmic"
forcePluginActivation="true"/>
</with>
</and>
</definition>
</extension>
[Updated on: Sun, 22 May 2016 07:43] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03267 seconds