Contribute action to JavaEditor popup menu [message #176809] |
Wed, 08 September 2004 04:51  |
Eclipse User |
|
|
|
Hi.
I developed extension that conributes action to JavaEditor popup menu:
<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
targetID="#CompilationUnitEditorContext"
id="viewConf">
<action
helpContextId="generate"
label="Generate my code"
icon="icons/genrate.gif"
menubarPath="org.eclipse.jdt.ui.source.menu/editGroup"
id="generate.GenerateMyCode"
class="generate.GenerateMyCode"/>
</viewerContribution>
</extension>
On Runtime Workbench development it works greate. I mark text on java
editor, right click, go into "Source" sub menu and see on bottom my action
"Generate my code"
So I jar my plugin and copy it to my test eclipse plugins folder.
Surprise ! - Everything works (all other new things I wrote in plugin)
besides(!!!) that popup menu extension.
I look at PDE Error Log and I see its clean. Plugin loads ok.
I don't underestand why I can see extension on Runtime development and I
can't see it on Deployment.
Any ideas ?
Thanks,
Asaf
|
|
|
|
Re: Contribute action to JavaEditor popup menu [message #176825 is a reply to message #176817] |
Wed, 08 September 2004 08:41  |
Eclipse User |
|
|
|
-clean on start did the work :-)
But this may point a bug in cache refresh in the case of contribute to exist
extension.
Does it worth open bug for it ?
Many thanks Daniel.
Asaf.
"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:chmnk1$k34$1@eclipse.org...
> Asaf wrote:
>
> >Hi.
> >I developed extension that conributes action to JavaEditor popup menu:
> ><extension
> > point="org.eclipse.ui.popupMenus">
> > <viewerContribution
> > targetID="#CompilationUnitEditorContext"
> > id="viewConf">
> > <action
> > helpContextId="generate"
> > label="Generate my code"
> > icon="icons/genrate.gif"
> > menubarPath="org.eclipse.jdt.ui.source.menu/editGroup"
> > id="generate.GenerateMyCode"
> > class="generate.GenerateMyCode"/>
> > </viewerContribution>
> > </extension>
> >
> >On Runtime Workbench development it works greate. I mark text on java
> >editor, right click, go into "Source" sub menu and see on bottom my
action
> >"Generate my code"
> >
> >So I jar my plugin and copy it to my test eclipse plugins folder.
> >Surprise ! - Everything works (all other new things I wrote in plugin)
> >besides(!!!) that popup menu extension.
> >
> >
> >
> >I look at PDE Error Log and I see its clean. Plugin loads ok.
> >
> >I don't underestand why I can see extension on Runtime development and I
> >can't see it on Deployment.
> >Any ideas ?
> >
> >
> Check the .log file of the workspace you launch from outside and check
> whether the JAR contains the code. Also, if you deploy it to an existing
> install you might need to refresh the cache: start with -clean.
>
> Dani
>
> >Thanks,
> >Asaf
> >
> >
> >
> >
> >
|
|
|
Re: Contribute action to JavaEditor popup menu [message #176833 is a reply to message #176825] |
Wed, 08 September 2004 07:59  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Asaf wrote:
>-clean on start did the work :-)
>But this may point a bug in cache refresh in the case of contribute to exist
>extension.
>Does it worth open bug for it ?
>
>
It depends what you did: did you add it to a clean install (i.e. your
plug-in wasn't there yet) or did you modify an existing plug-in? Adding
a new plug-in should work without -clean but modifying an existing
plug-in is considered development time work and for this we have the
-clean flag.
Dani
>Many thanks Daniel.
>Asaf.
>
>"Daniel Megert" <daniel.megert@gmx.net> wrote in message
>news:chmnk1$k34$1@eclipse.org...
>
>
>>Asaf wrote:
>>
>>
>>
>>>Hi.
>>>I developed extension that conributes action to JavaEditor popup menu:
>>><extension
>>> point="org.eclipse.ui.popupMenus">
>>> <viewerContribution
>>> targetID="#CompilationUnitEditorContext"
>>> id="viewConf">
>>> <action
>>> helpContextId="generate"
>>> label="Generate my code"
>>> icon="icons/genrate.gif"
>>> menubarPath="org.eclipse.jdt.ui.source.menu/editGroup"
>>> id="generate.GenerateMyCode"
>>> class="generate.GenerateMyCode"/>
>>> </viewerContribution>
>>> </extension>
>>>
>>>On Runtime Workbench development it works greate. I mark text on java
>>>editor, right click, go into "Source" sub menu and see on bottom my
>>>
>>>
>action
>
>
>>>"Generate my code"
>>>
>>>So I jar my plugin and copy it to my test eclipse plugins folder.
>>>Surprise ! - Everything works (all other new things I wrote in plugin)
>>>besides(!!!) that popup menu extension.
>>>
>>>
>>>
>>>I look at PDE Error Log and I see its clean. Plugin loads ok.
>>>
>>>I don't underestand why I can see extension on Runtime development and I
>>>can't see it on Deployment.
>>>Any ideas ?
>>>
>>>
>>>
>>>
>>Check the .log file of the workspace you launch from outside and check
>>whether the JAR contains the code. Also, if you deploy it to an existing
>>install you might need to refresh the cache: start with -clean.
>>
>>Dani
>>
>>
>>
>>>Thanks,
>>>Asaf
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08698 seconds