Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » WTP M4 xml editor porting question
WTP M4 xml editor porting question [message #101349] Mon, 09 May 2005 08:43 Go to next message
Eclipse UserFriend
hello webtools team,

i am currently porting the orangevolt xslt plugin to webtools m4.

using m3 i was able to add menu contributions to the structured editor
by declearing a popup menu contribution

<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
targetID="org.eclipse.wst.sse.ui.StructuredTextEditor.context "
id="com.orangevolt.xslt.editor.actions">

...
</extension>

this way doesnt work anymore in m4.

i also read in the new archive that the editorextension extension point
doesnt work in the current webtools release.

now my question: what is the proposed way to contribute popup menu
actions to an structured editor ?

many regards,

lars
Re: WTP M4 xml editor porting question [message #101373 is a reply to message #101349] Mon, 09 May 2005 09:22 Go to previous messageGo to next message
Eclipse UserFriend
hi guys,

got it !

i will answer it by myself:

the new xml editor context menu target id is
org.eclipse.core.runtime.xml.source.EditorContext

have fun,

lars

lars gersmann wrote:
> hello webtools team,
>
> i am currently porting the orangevolt xslt plugin to webtools m4.
>
> using m3 i was able to add menu contributions to the structured editor
> by declearing a popup menu contribution
>
> <extension
> point="org.eclipse.ui.popupMenus">
> <viewerContribution
> targetID="org.eclipse.wst.sse.ui.StructuredTextEditor.context "
> id="com.orangevolt.xslt.editor.actions">
>
> ...
> </extension>
>
> this way doesnt work anymore in m4.
>
> i also read in the new archive that the editorextension extension point
> doesnt work in the current webtools release.
>
> now my question: what is the proposed way to contribute popup menu
> actions to an structured editor ?
>
> many regards,
>
> lars
Re: WTP M4 xml editor porting question [message #102793 is a reply to message #101373] Wed, 11 May 2005 19:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

Information on this change is in:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=90476

"lars gersmann" <lars.gersmann@gmail.com> wrote in message
news:d5nok1$vsa$1@news.eclipse.org...
> hi guys,
>
> got it !
>
> i will answer it by myself:
>
> the new xml editor context menu target id is
> org.eclipse.core.runtime.xml.source.EditorContext
>
> have fun,
>
> lars
>
> lars gersmann wrote:
> > hello webtools team,
> >
> > i am currently porting the orangevolt xslt plugin to webtools m4.
> >
> > using m3 i was able to add menu contributions to the structured editor
> > by declearing a popup menu contribution
> >
> > <extension
> > point="org.eclipse.ui.popupMenus">
> > <viewerContribution
> > targetID="org.eclipse.wst.sse.ui.StructuredTextEditor.context "
> > id="com.orangevolt.xslt.editor.actions">
> >
> > ...
> > </extension>
> >
> > this way doesnt work anymore in m4.
> >
> > i also read in the new archive that the editorextension extension point
> > doesnt work in the current webtools release.
> >
> > now my question: what is the proposed way to contribute popup menu
> > actions to an structured editor ?
> >
> > many regards,
> >
> > lars
Re: WTP M4 xml editor porting question [message #102965 is a reply to message #102793] Thu, 12 May 2005 05:49 Go to previous messageGo to next message
Eclipse UserFriend
thanks amy.

i have noticed that my editor context menu extensions will work for xml
files (which sound logical for because i registered it to the xml source
editors (org.eclipse.core.runtime.xml.source.EditorContext)).

when i open an xslt file using the wtp xml editor my context menu action
will not occur. thanks to amy 's hint i guess that i have to register
the actions again to org.eclipse.core.runtime.xsl.source.EditorContext.

do i think right ?

many regards,

lars

amy wrote:
> Information on this change is in:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=90476
>
> "lars gersmann" <lars.gersmann@gmail.com> wrote in message
> news:d5nok1$vsa$1@news.eclipse.org...
>
>>hi guys,
>>
>>got it !
>>
>>i will answer it by myself:
>>
>>the new xml editor context menu target id is
>>org.eclipse.core.runtime.xml.source.EditorContext
>>
>>have fun,
>>
>>lars
>>
>>lars gersmann wrote:
>>
>>>hello webtools team,
>>>
>>>i am currently porting the orangevolt xslt plugin to webtools m4.
>>>
>>>using m3 i was able to add menu contributions to the structured editor
>>>by declearing a popup menu contribution
>>>
>>> <extension
>>> point="org.eclipse.ui.popupMenus">
>>> <viewerContribution
>>> targetID="org.eclipse.wst.sse.ui.StructuredTextEditor.context "
>>> id="com.orangevolt.xslt.editor.actions">
>>>
>>> ...
>>></extension>
>>>
>>>this way doesnt work anymore in m4.
>>>
>>>i also read in the new archive that the editorextension extension point
>>>doesnt work in the current webtools release.
>>>
>>>now my question: what is the proposed way to contribute popup menu
>>>actions to an structured editor ?
>>>
>>>many regards,
>>>
>>>lars
>
>
>
Re: WTP M4 xml editor porting question [message #103086 is a reply to message #102965] Thu, 12 May 2005 11:00 Go to previous message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

Right..if xslt's content type is org.eclipse.core.runtime.xsl.


"lars gersmann" <lars.gersmann@gmail.com> wrote in message
news:d5v9c5$lol$1@news.eclipse.org...
> thanks amy.
>
> i have noticed that my editor context menu extensions will work for xml
> files (which sound logical for because i registered it to the xml source
> editors (org.eclipse.core.runtime.xml.source.EditorContext)).
>
> when i open an xslt file using the wtp xml editor my context menu action
> will not occur. thanks to amy 's hint i guess that i have to register
> the actions again to org.eclipse.core.runtime.xsl.source.EditorContext.
>
> do i think right ?
>
> many regards,
>
> lars
>
> amy wrote:
> > Information on this change is in:
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=90476
> >
> > "lars gersmann" <lars.gersmann@gmail.com> wrote in message
> > news:d5nok1$vsa$1@news.eclipse.org...
> >
> >>hi guys,
> >>
> >>got it !
> >>
> >>i will answer it by myself:
> >>
> >>the new xml editor context menu target id is
> >>org.eclipse.core.runtime.xml.source.EditorContext
> >>
> >>have fun,
> >>
> >>lars
> >>
> >>lars gersmann wrote:
> >>
> >>>hello webtools team,
> >>>
> >>>i am currently porting the orangevolt xslt plugin to webtools m4.
> >>>
> >>>using m3 i was able to add menu contributions to the structured editor
> >>>by declearing a popup menu contribution
> >>>
> >>> <extension
> >>> point="org.eclipse.ui.popupMenus">
> >>> <viewerContribution
> >>> targetID="org.eclipse.wst.sse.ui.StructuredTextEditor.context "
> >>> id="com.orangevolt.xslt.editor.actions">
> >>>
> >>> ...
> >>></extension>
> >>>
> >>>this way doesnt work anymore in m4.
> >>>
> >>>i also read in the new archive that the editorextension extension point
> >>>doesnt work in the current webtools release.
> >>>
> >>>now my question: what is the proposed way to contribute popup menu
> >>>actions to an structured editor ?
> >>>
> >>>many regards,
> >>>
> >>>lars
> >
> >
> >
Previous Topic:Download page not updated
Next Topic:[M4] Already created project loses Server Classpath
Goto Forum:
  


Current Time: Sun Jun 08 18:35:59 EDT 2025

Powered by FUDForum. Page generated in 0.23816 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top