Examples of IThemeDescriptor


Examples of org.eclipse.ui.internal.themes.IThemeDescriptor

  private void refreshThemeDescriptionText() {
    String description = null;
    int idx = themeCombo.getSelectionIndex();
    // idx == 0 is "Default" which has no description
    if (idx > 0) {
      IThemeDescriptor theme = WorkbenchPlugin.getDefault()
          .getThemeRegistry().getThemes()[idx - 1];
      description = theme.getDescription();
    }
    if (description == null) {
      description = ""; //$NON-NLS-1$
    }
    themeDescriptionText.setText(description);
View Full Code Here

Examples of org.eclipse.ui.internal.themes.IThemeDescriptor

    if (idx <= 0) {
      Workbench.getInstance().getThemeManager().setCurrentTheme(
          IThemeManager.DEFAULT_THEME);
      refreshThemeCombo(IThemeManager.DEFAULT_THEME);
    } else {
      IThemeDescriptor applyTheme = WorkbenchPlugin.getDefault().getThemeRegistry().getThemes()[idx - 1];
      Workbench.getInstance().getThemeManager()
          .setCurrentTheme(applyTheme.getId());
      refreshThemeCombo(applyTheme.getId());
    }
    refreshThemeDescriptionText();
   
    apiStore.setValue(
        IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.