[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [wtp-dev] "Show In" action and XMLMultiPageEditorPart editor
|
hello nitin,
i tried your advice but without any success. my editor is the original
XMLMultipart editor and defined using the following :
<extension point="org.eclipse.ui.editors">
<editor
name="Genero Action Default List Editor"
icon="/icons/actiondefaultlist.gif"
contributorClass="com.fourjs.genero.ide.gad.editor.GadActionBarContributor"
class="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"
id="com.fourjs.genero.ide.gad.editor">
<contentTypeBinding
contentTypeId="com.fourjs.genero.ide.gad.contenttype" />
</editor>
</extension>
i adapted your advice using the folowing actionSetPartAssociations:
<extension point="org.eclipse.ui.actionSetPartAssociations">
<actionSetPartAssociation
targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
<part id="com.fourjs.genero.ide.gad.editor"/>
</actionSetPartAssociation>
<actionSetPartAssociation
targetID="org.eclipse.ui.NavigateActionSet">
<part id="com.fourjs.genero.ide.gad.editor"/>
</actionSetPartAssociation>
</extension>
unfortunately the "Show In" action doesnt appear.
Lars,
It does show up and work fine, at least for the XML Editor. If you're
thats the second question i have : i dont have the "Show In" action in
the core wst xml editor (eclipse europa release).
do you ?
reusing the class as you recently blogged about, you'll have to redeclare
any action set part associations for your editor's new ID. These are the
relevant plugin.xml sections using the generic XML Editor's part ID:
<!-- Editor actionsets -->
<extension point="org.eclipse.ui.actionSetPartAssociations">
<actionSetPartAssociation targetID=
"org.eclipse.ui.edit.text.actionSet.annotationNavigation">
<part id=
"org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"/>
</actionSetPartAssociation>
<actionSetPartAssociation targetID=
"org.eclipse.ui.NavigateActionSet">
<part id=
"org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"/>
</actionSetPartAssociation>
</extension>
---
Nitin Dahyabhai
Structured Source Editing
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev
many regards,
lars