Skip to main content



      Home
Home » Eclipse Projects » GEF » GEF as RCP ?
GEF as RCP ? [message #170299] Thu, 03 March 2005 09:46 Go to next message
Eclipse UserFriend
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 #170339 is a reply to message #170299] Thu, 03 March 2005 14:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Alan Morgan wrote:
> 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.
>
>

im not having any issues running my GEF RCP application.

CL
Re: GEF as RCP ? [message #170353 is a reply to message #170299] Thu, 03 March 2005 17:37 Go to previous messageGo to next message
Eclipse UserFriend
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 #170415 is a reply to message #170353] Fri, 04 March 2005 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: a.morgan.pilz.ie

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 #170485 is a reply to message #170299] Fri, 04 March 2005 14:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Alan Morgan wrote:
> 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.
>
>

what does the log say?

CL
Re: GEF as RCP ? [message #170599 is a reply to message #170415] Sat, 05 March 2005 16:47 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
>
Previous Topic:Pallete is not refreshing
Next Topic:RectangleAnimation
Goto Forum:
  


Current Time: Wed Jun 18 23:50:46 EDT 2025

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

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

Back to the top