GEF as RCP ? [message #170299] |
Thu, 03 March 2005 09:46  |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Hey all,
Have just tried to run my GEF Editor as part of a standalone RCP and had
some strange behaviour.
Firstly a lot of the keys no longer work - Select All, Undo/Redo, Print keys
aren't working anymore.
Plus when I try to launch another GEF editor from within the original one it
is not working.
Anyone else had experience with this ?
Regards,
Alan.
|
|
|
|
|
|
|
Re: GEF as RCP ? [message #170599 is a reply to message #170415] |
Sat, 05 March 2005 16:47   |
Eclipse User |
|
|
|
Did you register your actions in declareGlobalActionKeys() into the
ActionBarContributor of your editor ?
You have also to check your WorkbenchAdvisor in your RCP Application.
Into the fillActionBars method when you are making your actions :
if ((flags & WorkbenchAdvisor.FILL_PROXY) == 0) {
// FILL_PROXY is not currently handled
Assert.isTrue((flags & WorkbenchAdvisor.FILL_PROXY) == 0);
actionBuilder = new ActionBuilder(window);
configurer_p.getWindowConfigurer(window).setData(TODAN_APP_K EY,
_actionBuilder);
actionBuilder.makeActions();
}
where makeActions() {
ActionFactory.IWorkbenchAction selectAllAction =
ActionFactory.SELECT_ALL.create(_window);
selectAllAction.setAccelerator(SWT.CTRL | 'A'); // you can use key
bindings declaration in plugin.xml according to your actions
}
IN RCP 3.1 the methods are sligthly modified, there is a
WorbenchActionBarAdvisor rather than this method into WorkbenchAdvisor,
thus check the 3.1 javadoc.
Stephane.
Alan Morgan wrote:
> Pratik,
>
> I already had that plugin.
> Any other ideas why this is happening ?
>
> Regards,
> Alan.
>
>
> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> news:d083id$rg1$1@www.eclipse.org...
>
>>You need the optional org.eclipse.ui.views plugin.
>>
>>"Alan Morgan" <a.morgan@pilz.ie> wrote in message
>>news:d077vd$9ec$1@www.eclipse.org...
>>
>>>Hey all,
>>>
>>>Have just tried to run my GEF Editor as part of a standalone RCP and had
>>>some strange behaviour.
>>>Firstly a lot of the keys no longer work - Select All, Undo/Redo, Print
>>
>>keys
>>
>>>aren't working anymore.
>>>Plus when I try to launch another GEF editor from within the original
>
> one
>
>>it
>>
>>>is not working.
>>>Anyone else had experience with this ?
>>>
>>>Regards,
>>>Alan.
>>>
>>>
>>
>>
>
>
|
|
|
Re: GEF as RCP ? [message #170626 is a reply to message #170299] |
Sat, 05 March 2005 23:14  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
> Have just tried to run my GEF Editor as part of a standalone RCP and had
> some strange behaviour.
> Firstly a lot of the keys no longer work - Select All, Undo/Redo, Print
> keys
> aren't working anymore.
Those actions are specific to IDEs. You've removed the IDE portion of
Eclipse, so your RCP app will have to redeclare those global actions.
> Plus when I try to launch another GEF editor from within the original one
> it
> is not working.
> Anyone else had experience with this ?
>
> Regards,
> Alan.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.30146 seconds