Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Theming like yoxos eclipse discovery application
Theming like yoxos eclipse discovery application [message #36365] Mon, 02 July 2007 13:51 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:updated to M4, now can't deploy to tomcat
Next Topic:Action set in a perspective extension
Goto Forum:
  


Current Time: Wed Apr 24 22:48:36 GMT 2024

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

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

Back to the top