Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Contribute action to JavaEditor popup menu
Contribute action to JavaEditor popup menu [message #176809] Wed, 08 September 2004 04:51 Go to next message
Eclipse UserFriend
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 #176817 is a reply to message #176809] Wed, 08 September 2004 06:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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 #176825 is a reply to message #176817] Wed, 08 September 2004 08:41 Go to previous message
Eclipse UserFriend
-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 Go to previous message
Eclipse UserFriend
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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
Previous Topic:view resource history in eclipse 3.0
Next Topic:Eclipse 3.0 strange shorcuts on Linux
Goto Forum:
  


Current Time: Wed Jul 23 04:35:17 EDT 2025

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

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

Back to the top