Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How can I specify my own perspective as my RCP's default perspective?
How can I specify my own perspective as my RCP's default perspective? [message #458758] Fri, 24 November 2006 03:51 Go to next message
Eclipse UserFriend
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 #458766 is a reply to message #458758] Fri, 24 November 2006 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alice_ace9.yahoo.com

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 #458825 is a reply to message #458766] Mon, 27 November 2006 04:43 Go to previous messageGo to next message
Eclipse UserFriend
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 #458829 is a reply to message #458825] Mon, 27 November 2006 09:01 Go to previous messageGo to next message
Delicia is currently offline DeliciaFriend
Messages: 41
Registered: July 2009
Member
Allen,

I did the same using 'plugin_customization.ini'
You could add: org.eclipse.ui/defaultPerspectiveId=org.eclipse.xx.xx......
And, plugin.xml of your product plugin should use this file:
<property name="preferenceCustomization" value="plugin_customization.ini"/>

HTH
Delicia.


"Allen Young" <allenmacyoung@gmail.com> wrote in message
news:7cde60f0d3638c8e038bd6424c0@news.eclipse.org...
> 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 Go to previous messageGo to next message
Eclipse UserFriend
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".
Re: How can I specify my own perspective as my RCP's default perspective? [message #458835 is a reply to message #458833] Mon, 27 November 2006 10:02 Go to previous messageGo to next message
Delicia is currently offline DeliciaFriend
Messages: 41
Registered: July 2009
Member
It looks right to me.
Could you confirm that the 'plugin_customization.ini' file is added to the
exported product?

Delicia.
Re: How can I specify my own perspective as my RCP's default perspective? [message #459000 is a reply to message #458835] Mon, 27 November 2006 11:43 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Delicia wrote:
> It looks right to me.
> Could you confirm that the 'plugin_customization.ini' file is added to the
> exported product?

... and don't forget to clean your run-time workspace! Many if not all
aspects of 'plugin_customization.ini' are only read once, especially,
if you have set

configurer.setSaveAndRestore(true);

Greetings from Bremen,

Daniel Krügler
Re: How can I specify my own perspective as my RCP's default perspective? [message #459052 is a reply to message #458758] Fri, 24 November 2006 08:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alice_ace9.yahoo.com

Allen,

In ur ApplicationWorkbenchAdvisor.java, give
perspective_id="ur.own.perspective.id", instead of the id of default
perspective.

AA

"Allen Young" <allenmacyoung@gmail.com> wrote in message
news:7cde60f0cade8c8ddd5f72fcb60@news.eclipse.org...
> 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 #462375 is a reply to message #458835] Sun, 28 January 2007 07:13 Go to previous message
Eclipse UserFriend
Originally posted by: allenmacyoung.gmail.com

Hi Delicia,

Sorry, I forgot to include it in the build path. Thank you for mentioning. :)


> It looks right to me.
> Could you confirm that the 'plugin_customization.ini' file is added to
> the
> exported product?
> Delicia.
>
Previous Topic:Getting all visible Elements in a Tree
Next Topic:Catch the editor open event
Goto Forum:
  


Current Time: Sun Oct 06 17:51:06 GMT 2024

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

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

Back to the top