コード例 #1
0
  @Override
  public void initialize(IWorkbenchConfigurer configurer) {
    //  윈도우 위치와 크기 저장
    configurer.setSaveAndRestore(true);

    // 색상변경
    IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
    ITheme currentTheme = themeManager.getCurrentTheme();
    ColorRegistry colorRegistry = currentTheme.getColorRegistry();
    colorRegistry.put(IWorkbenchThemeConstants.ACTIVE_TAB_BG_START, new RGB(16, 86, 100));
    colorRegistry.put(IWorkbenchThemeConstants.ACTIVE_TAB_BG_END, new RGB(219, 238, 241));
    colorRegistry.put(IWorkbenchThemeConstants.ACTIVE_TAB_TEXT_COLOR, new RGB(0, 0, 255));

    colorRegistry.put(IWorkbenchThemeConstants.ACTIVE_TAB_PERCENT, new RGB(255, 0, 0));

    super.initialize(configurer);
  }
コード例 #2
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)
  */
 @Override
 public void initialize(IWorkbenchConfigurer configurer) {
   super.initialize(configurer);
   configurer.setSaveAndRestore(true);
 }