How can I specify my own perspective as my RCP's default perspective? [message #458758] |
Fri, 24 November 2006 03:51 |
Eclipse User |
|
|
|
Originally posted by: allenmacyoung.gmail.com
Hi all,
My RCP's default perspective now is "Resource", which is the default perspective
of Eclipse. I've implemented a new perspective by myself and want to use
it as the default perspective when the users open my RCP. How can I do this?
Thanks.
Allen.
|
|
|
|
Re: How can I specify my own perspective as my RCP's default perspective? [message #458825 is a reply to message #458766] |
Mon, 27 November 2006 04:43 |
Eclipse User |
|
|
|
Originally posted by: allenmacyoung.gmail.com
Hi alice9,
There is no ApplicatinWorkbenchAdivsor.java at first. I'm writing a plug-in
now and want to export it to an "Eclipse product". To do this, I've create
a "product configuration" and choose all the plug-ins and features I want
in the corresponding .product file. I'm thinking that maybe I can configure
the default perspective in some configuration file, too. But I don't know
how. Thanks.
Allen.
> Hi Allen,
>
> In ur ApplicationWorkbenchAdvisor.java, give
> perspective_id="ur.own.perspective.id", instead of the id of default
> the default perspective.
>
> AA
>
|
|
|
|
Re: How can I specify my own perspective as my RCP's default perspective? [message #458833 is a reply to message #458829] |
Mon, 27 November 2006 09:38 |
Eclipse User |
|
|
|
Originally posted by: allenmacyoung.gmail.com
Hi Delicia,
I don't know if I've understand your word, but I cannot get it work following
your instructions. So I put my code here, please help me find out what is
the problem.
This is my plugin.xml, so the perspective I want to use is "org.jthin.jpssp.ide.configuration.views.ConfigurationView".
And I added the <property name="" value=""/> thing and <product/> tag, I
don't whether this is right.
------------------------------------------------------------ ----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.ui.views">
<category
name="Jthin"
id="org.jthin.jpssp.ide.configuration">
</category>
<view
name="Jthin Configuration"
icon="icons/sample.gif"
category="org.jthin.jpssp.ide.configuration"
class=" org.jthin.jpssp.ide.configuration.ui.views.ConfigurationView "
id="org.jthin.jpssp.ide.configuration.views.ConfigurationView ">
</view>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
class="org.jthin.jpssp.ide.configuration.JthinPerspectiveFactory "
id="org.jthin.jpssp.ide.configuration.JthinPerspective"
name="Jthin"/>
</extension>
<extension
id="JthinIDE"
point="org.eclipse.core.runtime.products">
<product
application="org.eclipse.ui.ide.workbench"
name="Jthin IDE">
<property
name="aboutText"
value="Jthin IDE Copyright."/>
<property name="preferenceCustomization" value="plugin_customization.ini"/>
</product>
</extension>
</plugin>
------------------------------------------------------------ ----------------------------
This is my plugin_customization.ini which lays in the same directory as plugin.xml
does.
------------------------------------------------------------ ----------------------------
org.eclipse.ui/defaultPerspectiveId=org.jthin.jpssp.ide.conf iguration.JthinPerspective
------------------------------------------------------------ ----------------------------
But the default perspective is still "Resource".
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.18419 seconds