Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » positioning CoolBar and PerspectiveBar
positioning CoolBar and PerspectiveBar [message #376152] Thu, 02 September 2004 16:46 Go to next message
Eclipse UserFriend
Originally posted by: evan_yap.mindspring.com

I've made the following settings:
configurer.showCoolBar(true);
configurer.showPerspectiveBar(true);

The (default) results I'm getting (on Windows XP):
CoolBar is below MenuBar in its own row
PerspectiveBar is below CoolBar in its own row

What I'd like to have in order to save space:
CoolBar and PerspectiveBar on same row,
with PerspectiveBar to the right of CoolBar.
PerspectiveBar can be right-aligned to the window edge,
so that CoolBar can grab the remaining horizontal space.

Could someone please tell me what steps I'm missing?
I haven't figured out what the default layout class is yet ...

Thanks!
Re: positioning CoolBar and PerspectiveBar [message #376167 is a reply to message #376152] Thu, 02 September 2004 17:44 Go to previous messageGo to next message
Mike Evans is currently offline Mike EvansFriend
Messages: 237
Registered: July 2009
Senior Member
I had a similar probelm with the perspective bar - could not find the code
positioning it and the following seemed to have no effect:
WorkbenchPlugin.getDefault().getPreferenceStore().setValue(
IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR,
IWorkbenchPreferenceConstants.TOP_RIGHT );
However I accidently right-clicked on the perspective bar and positioning
options magically appeared.
Perhaps you'll be as lucky...

Mike Evans


"Evan Chua-Yap" <evan_yap@mindspring.com> wrote in message
news:ch7ij7$doh$1@eclipse.org...
> I've made the following settings:
> configurer.showCoolBar(true);
> configurer.showPerspectiveBar(true);
>
> The (default) results I'm getting (on Windows XP):
> CoolBar is below MenuBar in its own row
> PerspectiveBar is below CoolBar in its own row
>
> What I'd like to have in order to save space:
> CoolBar and PerspectiveBar on same row,
> with PerspectiveBar to the right of CoolBar.
> PerspectiveBar can be right-aligned to the window edge,
> so that CoolBar can grab the remaining horizontal space.
>
> Could someone please tell me what steps I'm missing?
> I haven't figured out what the default layout class is yet ...
>
> Thanks!
>
>
Re: positioning CoolBar and PerspectiveBar [message #376173 is a reply to message #376152] Thu, 02 September 2004 18:27 Go to previous messageGo to next message
Andrew Eidsness is currently offline Andrew EidsnessFriend
Messages: 13
Registered: July 2009
Junior Member
If you already have a plugin_customization.ini file for your RCP
application then the easiest way to control the initial location of the
perspective bar is to add the following line:

org.eclipse.ui/DOCK_PERSPECTIVE_BAR=topRight

If you don't already have a plugin_customization file then review the
section:
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -ui-home/rcp/index.html#rcp_and_r21

This is a description of how to use the R21-style presentation in your RCP
application however, one part of that process is to create a
plugin_customization.ini file.

-Andrew

On Thu, 2 Sep 2004 09:46:51 -0700, Evan Chua-Yap <evan_yap@mindspring.com>
wrote:

> I've made the following settings:
> configurer.showCoolBar(true);
> configurer.showPerspectiveBar(true);
>
> The (default) results I'm getting (on Windows XP):
> CoolBar is below MenuBar in its own row
> PerspectiveBar is below CoolBar in its own row
>
> What I'd like to have in order to save space:
> CoolBar and PerspectiveBar on same row,
> with PerspectiveBar to the right of CoolBar.
> PerspectiveBar can be right-aligned to the window edge,
> so that CoolBar can grab the remaining horizontal space.
>
> Could someone please tell me what steps I'm missing?
> I haven't figured out what the default layout class is yet ...
>
> Thanks!
>
>
Re: positioning CoolBar and PerspectiveBar [message #376175 is a reply to message #376167] Thu, 02 September 2004 18:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evan_yap.mindspring.com

Thanks, Mike!

Thanks for the tip re: right-click Dock On ... option.
Wouldn't have known to try it if you had not mentioned it.
I haven't tried the preference setting, but I definitely would like to be
able
to do the positioning programatically. You'll hear from me if I'm
able to find a programmatic way to do this [ that is, if i can figure out
where to find the Dock On ... code :-) ].

Thanks again!

"Mike Evans" <mike.evans@incremental.eu.com> wrote in message
news:ch7m00$jif$1@eclipse.org...
> I had a similar probelm with the perspective bar - could not find the code
> positioning it and the following seemed to have no effect:
> WorkbenchPlugin.getDefault().getPreferenceStore().setValue(
> IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR,
> IWorkbenchPreferenceConstants.TOP_RIGHT );
> However I accidently right-clicked on the perspective bar and positioning
> options magically appeared.
> Perhaps you'll be as lucky...
>
> Mike Evans
>
>
> "Evan Chua-Yap" <evan_yap@mindspring.com> wrote in message
> news:ch7ij7$doh$1@eclipse.org...
> > I've made the following settings:
> > configurer.showCoolBar(true);
> > configurer.showPerspectiveBar(true);
> >
> > The (default) results I'm getting (on Windows XP):
> > CoolBar is below MenuBar in its own row
> > PerspectiveBar is below CoolBar in its own row
> >
> > What I'd like to have in order to save space:
> > CoolBar and PerspectiveBar on same row,
> > with PerspectiveBar to the right of CoolBar.
> > PerspectiveBar can be right-aligned to the window edge,
> > so that CoolBar can grab the remaining horizontal space.
> >
> > Could someone please tell me what steps I'm missing?
> > I haven't figured out what the default layout class is yet ...
> >
> > Thanks!
> >
> >
>
>
Re: positioning CoolBar and PerspectiveBar [message #376176 is a reply to message #376173] Thu, 02 September 2004 18:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evan_yap.mindspring.com

Thanks, Andrew. I'll try it.

"Andrew Eidsness" <Andrew_Eidsness@ca.ibm.com> wrote in message
news:opsdppjck44nuvnq@news.eclipse.org...
> If you already have a plugin_customization.ini file for your RCP
> application then the easiest way to control the initial location of the
> perspective bar is to add the following line:
>
> org.eclipse.ui/DOCK_PERSPECTIVE_BAR=topRight
>
> If you don't already have a plugin_customization file then review the
> section:
>
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -ui-home/rcp/index.html#rcp_and_r21
>
> This is a description of how to use the R21-style presentation in your RCP
> application however, one part of that process is to create a
> plugin_customization.ini file.
>
> -Andrew
>
> On Thu, 2 Sep 2004 09:46:51 -0700, Evan Chua-Yap <evan_yap@mindspring.com>
> wrote:
>
> > I've made the following settings:
> > configurer.showCoolBar(true);
> > configurer.showPerspectiveBar(true);
> >
> > The (default) results I'm getting (on Windows XP):
> > CoolBar is below MenuBar in its own row
> > PerspectiveBar is below CoolBar in its own row
> >
> > What I'd like to have in order to save space:
> > CoolBar and PerspectiveBar on same row,
> > with PerspectiveBar to the right of CoolBar.
> > PerspectiveBar can be right-aligned to the window edge,
> > so that CoolBar can grab the remaining horizontal space.
> >
> > Could someone please tell me what steps I'm missing?
> > I haven't figured out what the default layout class is yet ...
> >
> > Thanks!
> >
> >
>
Re: positioning CoolBar and PerspectiveBar [message #1792328 is a reply to message #376176] Mon, 16 July 2018 07:51 Go to previous message
junhe tan is currently offline junhe tanFriend
Messages: 1
Registered: July 2018
Junior Member
Hi All,

i am facing the same problem in my eclipse Luna version
in plugin_customization added
org.eclipse.ui/DOCK_PERSPECTIVE_BAR=topRight

and in ApplicationWorkbenchWindowAdvisor.java
added the code as
IPreferenceStore pref = PlatformUI.getPreferenceStore();
pref.setValue(IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR, IWorkbenchPreferenceConstants.TOP_RIGHT);
the toolbar(coolbar) still having a big space / gap within the perspective bar..
any other way to make the perspective bar and coolbar is the same row?

-Junhe
Previous Topic:plugin_customization.ini file not loaded during first time launch
Next Topic:Add Jars To Runtime Classpath After RCP Release
Goto Forum:
  


Current Time: Thu Sep 20 12:30:15 GMT 2018

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

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

Back to the top