|
|
|
|
|
|
Re: Changing the perspective bar look and location [message #463020 is a reply to message #463019] |
Sat, 03 February 2007 19:34  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06463 seconds