Package org.eclipse.ui.themes

Examples of org.eclipse.ui.themes.ITheme


  theGriddata = new GridData(SWT.FILL, SWT.FILL, true, true);
  theGriddata.horizontalSpan = 7;
  myMonitorOutput.setLayoutData(theGriddata);
  myMonitorOutput.setEditable(false);
  IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
  ITheme currentTheme = themeManager.getCurrentTheme();
  FontRegistry fontRegistry = currentTheme.getFontRegistry();
  myMonitorOutput.setFont(fontRegistry.get("it.baeyens.serial.fontDefinition"));
  myMonitorOutput.setText("Currently there are no serial ports registered - please use the + button to add a port to the monitor.");

  myparent.getShell().setDefaultButton(mySendButton);
  makeActions();
View Full Code Here


    return myScope.getSize().x - 10; // Oscilloscope.TAILSIZE_MAX;
      }
  };

  IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
  ITheme currentTheme = themeManager.getCurrentTheme();
  ColorRegistry colorRegistry = currentTheme.getColorRegistry();

  myScope = new Oscilloscope(6, dsp, parent, SWT.NONE, colorRegistry.get("it.baeyens.scope.color.background"),
    colorRegistry.get("it.baeyens.scope.color.foreground"), colorRegistry.get("it.baeyens.scope.color.grid"));
  GridData theGriddata = new GridData(SWT.FILL, SWT.FILL, true, true);
  theGriddata.horizontalSpan = 7;
View Full Code Here

  private Color getColor(String name) {
    if (name == null) {
      return null;
    }

    ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();
    Color c = theme.getColorRegistry().get(name);

    if (c == null) {
      return Display.getDefault().getSystemColor(SWT.COLOR_BLACK);
    }
View Full Code Here

  private Font getFont(String name) {
    if (name == null) {
      return null;
    }

    ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();
    Font f = theme.getFontRegistry().get(name);

    if (f == null) {
      return Display.getDefault().getSystemFont();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.themes.ITheme

Copyright © 2018 www.massapicom. 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.