|
|
|
Re: How To Define A Startup Perspective For My Plugin [message #337020 is a reply to message #337007] |
Tue, 21 July 2009 12:05  |
Eclipse User |
|
|
|
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" <felix_do@web.de> wrote in message
news:h42ii0$8ck$1@build.eclipse.org...
> Runzhou Li wrote:
>> Hi,
>>
>> 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)
>
>
> Felix
|
|
|
Powered by
FUDForum. Page generated in 0.02851 seconds