Theming like yoxos eclipse discovery application [message #36365] |
Mon, 02 July 2007 13:51  |
Eclipse User |
|
|
|
Originally posted by: benedikt.arnold.beyondsoft.de
Hi!
Today I downloaded the new eclipse 3.3 IDE via the yoxos service. The
application looks very hot!
Can someone give me some hints, how I can theme my own application like
this? I am very interested in customizing the toolbar.
I already read the wiki article about theming.
Greetings,
Ben
|
|
|
Re: Theming like yoxos eclipse discovery application [message #36486 is a reply to message #36365] |
Tue, 03 July 2007 09:56   |
Eclipse User |
|
|
|
Originally posted by: b.muskalla.gmx.net
Hi,
nice that you like it :)
The toolbar is just a composite in a ContributionItem which is put into
the main toolbar of the workbench window. I think Frank can give you a
simple snippet how to do this.
Greets
Benny
Benedikt Arnold wrote:
> Hi!
>
> Today I downloaded the new eclipse 3.3 IDE via the yoxos service. The
> application looks very hot!
> Can someone give me some hints, how I can theme my own application like
> this? I am very interested in customizing the toolbar.
>
> I already read the wiki article about theming.
>
> Greetings,
> Ben
>
>
|
|
|
Re: Theming like yoxos eclipse discovery application [message #36678 is a reply to message #36486] |
Wed, 04 July 2007 03:47  |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
here comes the snippet:
ActionBarAdvisor:
protected void fillCoolBar( final ICoolBarManager coolBar ) {
coolBar.add( new ContributionItem() {
public void fill( final CoolBar parent, final int index ) {
final CoolItem item = new CoolItem( parent, SWT.NONE );
final Composite proxy = new Composite( parent, SWT.NONE );
final Shell shell = parent.getShell();
final Composite composite = new Composite( shell, SWT.NONE );
composite.setBackground( Color.getColor( 255, 0, 0 ) );
parent.setVisible( false );
proxy.addControlListener( new ControlAdapter() {
public void controlResized( ControlEvent e ) {
Display display = Display.getCurrent();
Point location = display.map( parent, shell, new Point(
2, -5 ) );
composite.setLocation( location );
Point size = proxy.getSize();
composite.setSize( size.x + 14, size.y + 6 );
}
} );
item.setControl( proxy );
item.setSize( 100, 100 );
parent.getParent().addControlListener( new ControlAdapter() {
public void controlResized( ControlEvent e ) {
item.setSize( ( ( Control )e.getSource() ).getSize().x - 6,
100 );
}
} );
}
} );
}
WorkbenchWindowAdvisor:
public void preWindowOpen() {
[...]
configurer.setShowCoolBar( true );
configurer.setShowMenuBar( false );
configurer.setShowPerspectiveBar( false );
[...]
}
Ciao
Frank
"Benjamin Muskalla" <b.muskalla@gmx.net> schrieb im Newsbeitrag
news:f6d6h8$lao$2@build.eclipse.org...
> Hi,
>
> nice that you like it :)
>
> The toolbar is just a composite in a ContributionItem which is put into
> the main toolbar of the workbench window. I think Frank can give you a
> simple snippet how to do this.
>
> Greets
> Benny
>
> Benedikt Arnold wrote:
>> Hi!
>>
>> Today I downloaded the new eclipse 3.3 IDE via the yoxos service. The
>> application looks very hot!
>> Can someone give me some hints, how I can theme my own application like
>> this? I am very interested in customizing the toolbar.
>>
>> I already read the wiki article about theming.
>>
>> Greetings,
>> Ben
|
|
|
Powered by
FUDForum. Page generated in 0.01682 seconds