|Re: How To Define A Startup Perspective For My Plugin [message #337020 is a reply to message #337007]
||Tue, 21 July 2009 16:05
Originally posted by: runzhou.li.gmail.com|
Unfortunately it failed to do so if the perspective is not opened
previously, i.e. if I only have J2EE perspective opened and wish to use
PlatformUI.getWorkbench().showPerspective(perspectiveId, window) to show
Java perspective, then it fails; only if I have both perspectives opened but
the Java is not activated could allow me to use this method to switch the
focus to Java perspective.
Please help :)
"Felix Dorner" <firstname.lastname@example.org> wrote in message
> Runzhou Li wrote:
>> I want to have my own customized perspective to be launched together with
>> my plugin, how can this be done?
>> Thank you in advance :)
>> Runzhou Li
> Declare a perspectiv extension. If you create the RCP Mail application,
> and look at the plugin.xml and the generated Perspective.java, you'll see
> how it's done.
> Then just call:
> PlatformUI.getWorkbench().showPerspective(perspectiveId, window)
Powered by FUDForum
. Page generated in 0.03374 seconds