Migrating from core to common

Hi,

I was using core library and I want to use now the common library
How can I specify in the common library:

  1. TabPainter. In core library I was using :
 
          [SIZE=2]TabPainter painter = new TabPainter() {...}
          [/SIZE][SIZE=2]controller.getProperties().set(EclipseTheme.TAB_PAINTER, painter); [/SIZE]

  1. Theme Connector, In core library I was using :

          [SIZE=2][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]EclipseThemeConnector connector = new DefaultEclipseThemeConnector() {...}[/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]          [SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]controller.getProperties().set(EclipseTheme.THEME_CONNECTOR, connector);
[/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]
  1. Combined menu content, In core library, I was using:

           [SIZE=2]CombinedMenuContent combinedMenuContent = new [SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]
           CombinedMenuContent {...}
           [SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]controller.getProperties().set(CombinedMenuContent.MENU_CONTENT, combinedMenuContent );
[/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]
  1. Eclipse Color scheme

  2. Maximise/Normalise and close icons[SIZE=2]

[/SIZE]Thank you

1-3: use either CControl.getController()… or CControl.putProperty(…). In the background the same code will be executed.

  1. Like 1-3, there is a key “EclipseTheme.ECLIPSE_COLOR_SCHEME” to set the scheme.

  2. See this thread