public RTCTypeToRTTypeWidget(Composite parent, int style) {
    super(parent, style);

    IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
    terminologic_level_color =
        themeManager
            .getTheme("org.dafoe.terminologiclevel.themeId")
            .getColorRegistry()
            .get("org.dafoe.application.backcolor"); // $NON-NLS-1$ //$NON-NLS-2$
    terminoontologic_level_color =
        themeManager
            .getTheme("org.dafoe.terminoontologiclevel.themeId")
            .getColorRegistry()
            .get("org.dafoe.application.backcolor"); // $NON-NLS-1$ //$NON-NLS-2$

    this.setLayout(new GridLayout());

    GridData gd;

    gd = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
    this.setLayoutData(gd);

    shell = this.getShell();

    createContent();
  }
 public TerminologicalViewPart() {
   currentTerminoConcept = null;
   IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
   terminologicColor =
       themeManager
           .getTheme("org.dafoe.terminologiclevel.themeId")
           .getColorRegistry()
           .get("org.dafoe.application.backcolor"); // $NON-NLS-1$ //$NON-NLS-2$
 }
  @Override
  public void createPartControl(Composite parent) {
    Composite menuOntologic = new Composite(parent, SWT.NONE);

    IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager();
    Color col =
        themeManager
            .getTheme("org.dafoe.ontologiclevel.themeId")
            .getColorRegistry()
            .get("org.dafoe.application.backcolor");

    menuOntologic.setBackground(col);

    menuOntologic.setLayout(new GridLayout(3, false));

    Button classes = new Button(menuOntologic, SWT.FLAT);
    classes.setText(Messages.getString("OntologicMenuViewPart.1")); // $NON-NLS-1$
    classes.addSelectionListener(
        new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            List<String> perpsectiveIdsFromContextLevel =
                Activator.getDefault()
                    .getContextLevel()
                    .getPerpsectiveIdsFromContextLevel("ontologic");

            System.out.println(perpsectiveIdsFromContextLevel.size());
            IPerspectiveRegistry perspectiveRegistry =
                PlatformUI.getWorkbench().getPerspectiveRegistry();
            IPerspectiveDescriptor perspectiveWithId =
                perspectiveRegistry.findPerspectiveWithId(perpsectiveIdsFromContextLevel.get(0));

            PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow()
                .getActivePage()
                .setPerspective(perspectiveWithId);
          }
        });

    Button objectProperties = new Button(menuOntologic, SWT.FLAT);
    objectProperties.setText(Messages.getString("OntologicMenuViewPart.2")); // $NON-NLS-1$
    objectProperties.addSelectionListener(
        new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            List<String> perpsectiveIdsFromContextLevel =
                Activator.getDefault()
                    .getContextLevel()
                    .getPerpsectiveIdsFromContextLevel("ontologic");

            IPerspectiveRegistry perspectiveRegistry =
                PlatformUI.getWorkbench().getPerspectiveRegistry();
            IPerspectiveDescriptor perspectiveWithId =
                perspectiveRegistry.findPerspectiveWithId(perpsectiveIdsFromContextLevel.get(1));

            PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow()
                .getActivePage()
                .setPerspective(perspectiveWithId);
          }
        });

    Button individuals = new Button(menuOntologic, SWT.FLAT);
    individuals.setText(Messages.getString("OntologicMenuViewPart.3")); // $NON-NLS-1$
    individuals.addSelectionListener(
        new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            List<String> perpsectiveIdsFromContextLevel =
                Activator.getDefault()
                    .getContextLevel()
                    .getPerpsectiveIdsFromContextLevel("ontologic");

            IPerspectiveRegistry perspectiveRegistry =
                PlatformUI.getWorkbench().getPerspectiveRegistry();
            IPerspectiveDescriptor perspectiveWithId =
                perspectiveRegistry.findPerspectiveWithId(perpsectiveIdsFromContextLevel.get(2));

            PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow()
                .getActivePage()
                .setPerspective(perspectiveWithId);
          }
        });
  }