Skip to main content



      Home
Home » Modeling » TMF (Xtext) » popup menu in outline after switch to 1.0.0
popup menu in outline after switch to 1.0.0 [message #531445] Tue, 04 May 2010 19:10 Go to next message
Eclipse UserFriend
Hi,
I have almost managed to get b3 over to 1.0 of Xtext (from 0.8), but I
have (hopefully) only one remaining issue. I have commands associated
with the popup menu over the outline, and these do not show up anymore.

In 0.8 they were bound to:
popup:org.eclipse.xtext.ui.outline?after=additions

Has this changed in 1.0 ?

My contributions are declared like this:
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.xtext.ui.outline?after=additions ">
<command
commandId="org.eclipse.b3.beelang.ui.resolve"
label="Resolve and Run Main Function"
style="push">
<visibleWhen
checkEnabled="false">
<iterate>
<adapt
type="org.eclipse.b3.build.build.BeeModel">
</adapt>
</iterate>
</visibleWhen>
</command>
</menuContribution>
<menuContribution
locationURI="popup:org.eclipse.xtext.ui.outline?after=additions ">
<command
commandId="org.eclipse.b3.beelang.ui.execute"
label="Run Main Function"
style="push">
<visibleWhen
checkEnabled="false">
<iterate>
<adapt
type="org.eclipse.b3.build.build.BeeModel">
</adapt>
</iterate>
</visibleWhen>
</command>
</menuContribution>
</extension>

Regards
- henrik
Re: popup menu in outline after switch to 1.0.0 [message #531703 is a reply to message #531445] Wed, 05 May 2010 16:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi Henrik,

I tried this definition and it showed to disabled menu item in the popup:

<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.xtext.ui.outline?after=additions ">
<command
commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline "
label="Resolve and Run Main Function"
style="push">
</command>
</menuContribution>

</extension>

Maybe there is something wrong with the predicates?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


Am 05.05.10 01:10, schrieb Henrik Lindberg:
> Hi,
> I have almost managed to get b3 over to 1.0 of Xtext (from 0.8), but I
> have (hopefully) only one remaining issue. I have commands associated
> with the popup menu over the outline, and these do not show up anymore.
>
> In 0.8 they were bound to:
> popup:org.eclipse.xtext.ui.outline?after=additions
>
> Has this changed in 1.0 ?
>
> My contributions are declared like this:
> <extension
> point="org.eclipse.ui.menus">
> <menuContribution
> locationURI="popup:org.eclipse.xtext.ui.outline?after=additions ">
> <command
> commandId="org.eclipse.b3.beelang.ui.resolve"
> label="Resolve and Run Main Function"
> style="push">
> <visibleWhen
> checkEnabled="false">
> <iterate>
> <adapt
> type="org.eclipse.b3.build.build.BeeModel">
> </adapt>
> </iterate>
> </visibleWhen>
> </command>
> </menuContribution>
> <menuContribution
> locationURI="popup:org.eclipse.xtext.ui.outline?after=additions ">
> <command
> commandId="org.eclipse.b3.beelang.ui.execute"
> label="Run Main Function"
> style="push">
> <visibleWhen
> checkEnabled="false">
> <iterate>
> <adapt
> type="org.eclipse.b3.build.build.BeeModel">
> </adapt>
> </iterate>
> </visibleWhen>
> </command>
> </menuContribution>
> </extension>
>
> Regards
> - henrik
Re: popup menu in outline after switch to 1.0.0 [message #531729 is a reply to message #531703] Wed, 05 May 2010 19:02 Go to previous message
Eclipse UserFriend
Mysterious issue...

I added what you tested to the end of my plugin.xml - and got suprised
that my two additions showed up (but not the entry below though...). I
then removed the entry again, and it continued to work... The plugin.xml
now contains exactly what it had before - only difference is that it is
now working.

Must have been a bad IDE/Build/PDE state or something...

- henrik <--- happy

On 5/5/10 10:25 PM, Sebastian Zarnekow wrote:
> <extension
> point="org.eclipse.ui.menus">
> <menuContribution
> locationURI="popup:org.eclipse.xtext.ui.outline?after=additions ">
> <command
> commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline "
> label="Resolve and Run Main Function"
> style="push">
> </command>
> </menuContribution>
>
> </extension>
Previous Topic:How to run a model-to-model workflow when a file is saved?
Next Topic:Grammar mixin and subclassing
Goto Forum:
  


Current Time: Fri Oct 31 18:26:29 EDT 2025

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

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

Back to the top