Composite linkComposite = new Composite( composite, SWT.BORDER ); linkComposite.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER ) ); linkComposite.setLayout( new FillLayout() ); CLabel link = new CLabel( linkComposite, SWT.BORDER ); link.setImage( G2GuiResources.getImage( "G2GuiLogoSmall" ) ); link.setToolTipText( G2GuiResources.getString( "CORE_CONSOLE_TOOLTIP" ) ); link.addMouseListener( new MouseAdapter() { public void mouseDown( MouseEvent e ) { G2Gui.getCoreConsole().getShell().open(); } } );
Composite linkComposite = new Composite( composite, SWT.NONE ); linkComposite.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER  | GridData.FILL_VERTICAL ) ); linkComposite.setLayout( new FillLayout() );  ToolBar toolBar = new ToolBar(linkComposite, SWT.FLAT); final ToolItem toolItem = new ToolItem(toolBar, SWT.NONE); toolItem.setImage(G2GuiResources.getImage("G2GuiLogoSmall")); toolItem.setToolTipText(G2GuiResources.getString("CORE_CONSOLE_TOOLTIP")); toolItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { G2Gui.getCoreConsole().getShell().open(); } });
    public void createContents() {        Composite linkComposite = new Composite( composite, SWT.BORDER );        linkComposite.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER ) );        linkComposite.setLayout( new FillLayout() );        CLabel link = new CLabel( linkComposite, SWT.BORDER );        link.setImage( G2GuiResources.getImage( "G2GuiLogoSmall" ) );        link.setToolTipText( G2GuiResources.getString( "CORE_CONSOLE_TOOLTIP" ) );        link.addMouseListener( new MouseAdapter() {            public void mouseDown( MouseEvent e ) {                G2Gui.getCoreConsole().getShell().open();            }        } );    }