Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Changing the perspective bar look and location
Changing the perspective bar look and location [message #463007] Sat, 03 February 2007 19:02 Go to next message
sudhakar is currently offline sudhakarFriend
Messages: 19
Registered: July 2009
Junior Member
I am attempting to customize the look and location of the perspective
bar in my RCP application. I'm using the following reference:

http://wiki.eclipse.org/index.php/RCP_FAQ#How_can_I_change_t he_default_UI_settings_for_the_perspective_bar_location.2C_f ast_view_bar_location.2C_etc.3F

Nothing happens even though I have my product extension configured and
my plugin_customizations.ini with the custom properties. There are no
error messages in the log file either.

Would appreciate any help debugging what's happening here.

Thanks
-sud
Re: Changing the perspective bar look and location [message #463011 is a reply to message #463007] Sat, 03 February 2007 21:11 Go to previous messageGo to next message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
You have to start your application in a new workspace when adding or
changing plugin_customizations.ini.
The workbench has saved the old state and uses it.

Snjeza

sudhakar wrote:
> I am attempting to customize the look and location of the perspective
> bar in my RCP application. I'm using the following reference:
>
> http://wiki.eclipse.org/index.php/RCP_FAQ#How_can_I_change_t he_default_UI_settings_for_the_perspective_bar_location.2C_f ast_view_bar_location.2C_etc.3F
>
>
> Nothing happens even though I have my product extension configured and
> my plugin_customizations.ini with the custom properties. There are no
> error messages in the log file either.
>
> Would appreciate any help debugging what's happening here.
>
> Thanks
> -sud
Re: Changing the perspective bar look and location [message #463013 is a reply to message #463011] Sat, 03 February 2007 22:52 Go to previous messageGo to next message
sudhakar is currently offline sudhakarFriend
Messages: 19
Registered: July 2009
Junior Member
I did try a new workspace and that did not fix it. Here is what I have
in my plugin.xml

<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="my.workbench.application"
name="My Workbench">
<property
name="preferenceCustomization"
value="plugin_customization.ini"/>
</product>
</extension>

Here is my plugin_customization.ini file:

my.workbench/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
my.workbench/initialFastViewBarLocation=left
my.workbench/SHOW_TRADITIONAL_STYLE_TABS=true

And I have the following in my Application class:

public static final String PLUGIN_ID = "my.workbench";

Hopefully someone can tell what I'm missing.

Thanks
-sud

Snjezana Peco wrote:
> You have to start your application in a new workspace when adding or
> changing plugin_customizations.ini.
> The workbench has saved the old state and uses it.
>
> Snjeza
>
> sudhakar wrote:
>> I am attempting to customize the look and location of the perspective
>> bar in my RCP application. I'm using the following reference:
>>
>> http://wiki.eclipse.org/index.php/RCP_FAQ#How_can_I_change_t he_default_UI_settings_for_the_perspective_bar_location.2C_f ast_view_bar_location.2C_etc.3F
>>
>>
>> Nothing happens even though I have my product extension configured and
>> my plugin_customizations.ini with the custom properties. There are no
>> error messages in the log file either.
>>
>> Would appreciate any help debugging what's happening here.
>>
>> Thanks
>> -sud
Re: Changing the perspective bar look and location [message #463015 is a reply to message #463013] Sat, 03 February 2007 23:10 Go to previous messageGo to next message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
Your plugin_customization.ini file has to contain the following:

org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
org.eclipse.ui/initialFastViewBarLocation=left
org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=true
....

Snjeza

sudhakar wrote:
> I did try a new workspace and that did not fix it. Here is what I have
> in my plugin.xml
>
> <extension
> id="product"
> point="org.eclipse.core.runtime.products">
> <product
> application="my.workbench.application"
> name="My Workbench">
> <property
> name="preferenceCustomization"
> value="plugin_customization.ini"/>
> </product>
> </extension>
>
> Here is my plugin_customization.ini file:
>
> my.workbench/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
> my.workbench/initialFastViewBarLocation=left
> my.workbench/SHOW_TRADITIONAL_STYLE_TABS=true
>
> And I have the following in my Application class:
>
> public static final String PLUGIN_ID = "my.workbench";
>
> Hopefully someone can tell what I'm missing.
>
> Thanks
> -sud
>
> Snjezana Peco wrote:
>> You have to start your application in a new workspace when adding or
>> changing plugin_customizations.ini.
>> The workbench has saved the old state and uses it.
>>
>> Snjeza
>>
>> sudhakar wrote:
>>> I am attempting to customize the look and location of the perspective
>>> bar in my RCP application. I'm using the following reference:
>>>
>>> http://wiki.eclipse.org/index.php/RCP_FAQ#How_can_I_change_t he_default_UI_settings_for_the_perspective_bar_location.2C_f ast_view_bar_location.2C_etc.3F
>>>
>>>
>>> Nothing happens even though I have my product extension configured
>>> and my plugin_customizations.ini with the custom properties. There
>>> are no error messages in the log file either.
>>>
>>> Would appreciate any help debugging what's happening here.
>>>
>>> Thanks
>>> -sud
Re: Changing the perspective bar look and location [message #463018 is a reply to message #463015] Sat, 03 February 2007 23:53 Go to previous messageGo to next message
sudhakar is currently offline sudhakarFriend
Messages: 19
Registered: July 2009
Junior Member
Thanks! That was it.

With the perspective bar displaying on the left, I now I have about an
inch of gray area between the menu bar and my editor area. Can't figure
how to get rid of this wasted (ugly) space.

Thanks for any help.
-sud

Snjezana Peco wrote:
> Your plugin_customization.ini file has to contain the following:
>
> org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
> org.eclipse.ui/initialFastViewBarLocation=left
> org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=true
> ...
>
> Snjeza
>
> sudhakar wrote:
>> I did try a new workspace and that did not fix it. Here is what I have
>> in my plugin.xml
>>
>> <extension
>> id="product"
>> point="org.eclipse.core.runtime.products">
>> <product
>> application="my.workbench.application"
>> name="My Workbench">
>> <property
>> name="preferenceCustomization"
>> value="plugin_customization.ini"/>
>> </product>
>> </extension>
>>
>> Here is my plugin_customization.ini file:
>>
>> my.workbench/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
>> my.workbench/initialFastViewBarLocation=left
>> my.workbench/SHOW_TRADITIONAL_STYLE_TABS=true
>>
>> And I have the following in my Application class:
>>
>> public static final String PLUGIN_ID = "my.workbench";
>>
>> Hopefully someone can tell what I'm missing.
>>
>> Thanks
>> -sud
>>
>> Snjezana Peco wrote:
>>> You have to start your application in a new workspace when adding or
>>> changing plugin_customizations.ini.
>>> The workbench has saved the old state and uses it.
>>>
>>> Snjeza
>>>
>>> sudhakar wrote:
>>>> I am attempting to customize the look and location of the
>>>> perspective bar in my RCP application. I'm using the following
>>>> reference:
>>>>
>>>> http://wiki.eclipse.org/index.php/RCP_FAQ#How_can_I_change_t he_default_UI_settings_for_the_perspective_bar_location.2C_f ast_view_bar_location.2C_etc.3F
>>>>
>>>>
>>>> Nothing happens even though I have my product extension configured
>>>> and my plugin_customizations.ini with the custom properties. There
>>>> are no error messages in the log file either.
>>>>
>>>> Would appreciate any help debugging what's happening here.
>>>>
>>>> Thanks
>>>> -sud
Re: Changing the perspective bar look and location [message #463019 is a reply to message #463018] Sun, 04 February 2007 00:04 Go to previous messageGo to next message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
You can reorder items in your toolbar to orgainize your space.

Snjeza

sudhakar wrote:
> Thanks! That was it.
>
> With the perspective bar displaying on the left, I now I have about an
> inch of gray area between the menu bar and my editor area. Can't figure
> how to get rid of this wasted (ugly) space.
>
> Thanks for any help.
> -sud
>
> Snjezana Peco wrote:
>> Your plugin_customization.ini file has to contain the following:
>>
>> org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
>> org.eclipse.ui/initialFastViewBarLocation=left
>> org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=true
>> ...
>>
>> Snjeza
>>
>> sudhakar wrote:
>>> I did try a new workspace and that did not fix it. Here is what I
>>> have in my plugin.xml
>>>
>>> <extension
>>> id="product"
>>> point="org.eclipse.core.runtime.products">
>>> <product
>>> application="my.workbench.application"
>>> name="My Workbench">
>>> <property
>>> name="preferenceCustomization"
>>> value="plugin_customization.ini"/>
>>> </product>
>>> </extension>
>>>
>>> Here is my plugin_customization.ini file:
>>>
>>> my.workbench/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
>>> my.workbench/initialFastViewBarLocation=left
>>> my.workbench/SHOW_TRADITIONAL_STYLE_TABS=true
>>>
>>> And I have the following in my Application class:
>>>
>>> public static final String PLUGIN_ID = "my.workbench";
>>>
>>> Hopefully someone can tell what I'm missing.
>>>
>>> Thanks
>>> -sud
>>>
>>> Snjezana Peco wrote:
>>>> You have to start your application in a new workspace when adding or
>>>> changing plugin_customizations.ini.
>>>> The workbench has saved the old state and uses it.
>>>>
>>>> Snjeza
>>>>
>>>> sudhakar wrote:
>>>>> I am attempting to customize the look and location of the
>>>>> perspective bar in my RCP application. I'm using the following
>>>>> reference:
>>>>>
>>>>> http://wiki.eclipse.org/index.php/RCP_FAQ#How_can_I_change_t he_default_UI_settings_for_the_perspective_bar_location.2C_f ast_view_bar_location.2C_etc.3F
>>>>>
>>>>>
>>>>> Nothing happens even though I have my product extension configured
>>>>> and my plugin_customizations.ini with the custom properties. There
>>>>> are no error messages in the log file either.
>>>>>
>>>>> Would appreciate any help debugging what's happening here.
>>>>>
>>>>> Thanks
>>>>> -sud
Re: Changing the perspective bar look and location [message #463020 is a reply to message #463019] Sun, 04 February 2007 00:34 Go to previous message
sudhakar is currently offline sudhakarFriend
Messages: 19
Registered: July 2009
Junior Member
I'm setting up the perspective via code. Here is my preWindowOpen method
in the ApplicationWorkbenchWindowAdvisor class.

public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(800, 600));

configurer.setShowCoolBar(false);
configurer.setShowStatusLine(true);
configurer.setShowProgressIndicator(true);

configurer.setShowPerspectiveBar(true);
}

Everything works fine. If I comment out the setShowCoolBar(false) I get
an about an inch of empty gray area between the menubar and the top of
the editor/view. So I assume I have to explicitly NOT display the
coolbar unless I do intend to use that space for buttons.

Problem is the moment I put the following in my plugin_customization.ini
file:

org.eclipse.ui/DOCK_PERSPECTIVE_BAR=left
org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=false

my perspective bar displays on the left and I get about an inch of empty
gray area between the menubar and the top of editor/view inspite of
having the setShowCoolBar(false).

Thanks
-sud

> Snjezana Peco wrote:
> You can reorder items in your toolbar to orgainize your space.
>
> Snjeza
>
> sudhakar wrote:
>> Thanks! That was it.
>>
>> With the perspective bar displaying on the left, I now I have about an
>> inch of gray area between the menu bar and my editor area. Can't
>> figure how to get rid of this wasted (ugly) space.
>>
>> Thanks for any help.
>> -sud
>>
>> Snjezana Peco wrote:
>>> Your plugin_customization.ini file has to contain the following:
>>>
>>> org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
>>> org.eclipse.ui/initialFastViewBarLocation=left
>>> org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=true
>>> ...
>>>
>>> Snjeza
>>>
>>> sudhakar wrote:
>>>> I did try a new workspace and that did not fix it. Here is what I
>>>> have in my plugin.xml
>>>>
>>>> <extension
>>>> id="product"
>>>> point="org.eclipse.core.runtime.products">
>>>> <product
>>>> application="my.workbench.application"
>>>> name="My Workbench">
>>>> <property
>>>> name="preferenceCustomization"
>>>> value="plugin_customization.ini"/>
>>>> </product>
>>>> </extension>
>>>>
>>>> Here is my plugin_customization.ini file:
>>>>
>>>> my.workbench/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
>>>> my.workbench/initialFastViewBarLocation=left
>>>> my.workbench/SHOW_TRADITIONAL_STYLE_TABS=true
>>>>
>>>> And I have the following in my Application class:
>>>>
>>>> public static final String PLUGIN_ID = "my.workbench";
>>>>
>>>> Hopefully someone can tell what I'm missing.
>>>>
>>>> Thanks
>>>> -sud
>>>>
>>>> Snjezana Peco wrote:
>>>>> You have to start your application in a new workspace when adding
>>>>> or changing plugin_customizations.ini.
>>>>> The workbench has saved the old state and uses it.
>>>>>
>>>>> Snjeza
>>>>>
>>>>> sudhakar wrote:
>>>>>> I am attempting to customize the look and location of the
>>>>>> perspective bar in my RCP application. I'm using the following
>>>>>> reference:
>>>>>>
>>>>>> http://wiki.eclipse.org/index.php/RCP_FAQ#How_can_I_change_t he_default_UI_settings_for_the_perspective_bar_location.2C_f ast_view_bar_location.2C_etc.3F
>>>>>>
>>>>>>
>>>>>> Nothing happens even though I have my product extension configured
>>>>>> and my plugin_customizations.ini with the custom properties. There
>>>>>> are no error messages in the log file either.
>>>>>>
>>>>>> Would appreciate any help debugging what's happening here.
>>>>>>
>>>>>> Thanks
>>>>>> -sud
Previous Topic:using IPersistableElement
Next Topic:Custom Status Line?
Goto Forum:
  


Current Time: Tue Sep 17 05:28:37 GMT 2024

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

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

Back to the top