@Override
  public void actionPerformed(AnActionEvent anActionEvent) {
    KevoreeEditorComponent.getInstance(null);
    if (KevoreeEditorComponent.keveditorCL != null) {
      try {
        final Class clazz =
            KevoreeEditorComponent.keveditorCL.loadClass("org.kevoree.tools.ui.editor.runner.App");
        final Method meth = clazz.getMethod("main", String[].class);
        // TODO inject the selected file
        SwingUtilities.invokeLater(
            new Runnable() {
              @Override
              public void run() {
                String[] params = new String[0];
                try {
                  meth.invoke(null, (Object) params);
                } catch (IllegalAccessException e) {
                  e.printStackTrace();
                } catch (InvocationTargetException e) {
                  e.printStackTrace();
                }
              }
            });

      } catch (Exception e) {
        e.printStackTrace();
      }

    } else {
      com.intellij.openapi.diagnostic.Logger.getInstance(this.getClass())
          .error("Editor Jar not resolved");
    }
  }
 @Override
 public void createToolWindowContent(Project project, ToolWindow toolWindow) {
   Component component = toolWindow.getComponent();
   JPanel kevoreeEditorPanel = KevoreeEditorComponent.getInstance(project).kevoreeEditorPanel;
   if (kevoreeEditorPanel != null) {
     component.getParent().add(kevoreeEditorPanel);
   } else {
     component.getParent().add(new JLabel("loading..."));
   }
 }