Package com.intellij.openapi.application

Examples of com.intellij.openapi.application.Application




  private final class ExternalEditorPathActionListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
      Application application = ApplicationManager.getApplication();
      VirtualFile previous = application.runWriteAction(new NullableComputable<VirtualFile>() {
        public VirtualFile compute() {
          final String path = FileUtil.toSystemIndependentName(myPathToSonarReportTextFieldWithBrowseButton.getText());
          return ! StringUtil.isEmptyOrSpaces(path) ? LocalFileSystem.getInstance().refreshAndFindFileByPath(path) : null ;
        }
      });
View Full Code Here


    return myRootPanel;
  }

  private final class ExternalEditorPathActionListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
      Application application = ApplicationManager.getApplication();
      VirtualFile previous = application.runWriteAction(new NullableComputable<VirtualFile>() {
        public VirtualFile compute() {
          final String path = FileUtil.toSystemIndependentName(mySourcePathTextFieldWithBrowseButton.getText());
          return LocalFileSystem.getInstance().refreshAndFindFileByPath(path);
        }
      });
View Full Code Here

    this.textFieldWithBrowseButton = textFieldWithBrowseButton;
    this.dirToSelect = dirToSelect;
  }

  public void actionPerformed(ActionEvent e) {
    Application application = ApplicationManager.getApplication();
    VirtualFile previous = application.runWriteAction(new NullableComputable<VirtualFile>() {
      public VirtualFile compute() {
        final String path = FileUtil.toSystemIndependentName(textFieldWithBrowseButton.getText());
        return ! StringUtil.isEmptyOrSpaces(path) ? LocalFileSystem.getInstance().refreshAndFindFileByPath(path) : null ;
      }
    });
View Full Code Here

    public Axis2PluginAction() {
        super("GC", "Axis2 plugins", null);
    }

    public void actionPerformed(AnActionEvent anActionEvent) {
        Application application =
                ApplicationManager.getApplication();
        Project project = (Project) anActionEvent.getDataContext().getData(DataConstants.PROJECT);

        Axis2IdeaPlugin axis2component =
                (Axis2IdeaPlugin) application.getComponent(Axis2IdeaPlugin.class);
        axis2component.showTool(project);
    }
View Full Code Here

    public static boolean debug() {
        return false;
    }

    public static Configurator getInstance() {
        Application application = ApplicationManager.getApplication();
        return application.getComponent(Configurator.class);
    }
View Full Code Here

public class SelectInTargetManager implements ApplicationComponent, ProjectManagerListener {

    private SelectInFileManagerTarget selectInFileManagerTarget = new SelectInFileManagerTarget();

    public static SelectInTargetManager getInstance() {
        Application application = ApplicationManager.getApplication();
        return application.getComponent(SelectInTargetManager.class);
    }
View Full Code Here

    public Axis2PluginAction() {
        super("GC", "Axis2 plugins", null);
    }

    public void actionPerformed(AnActionEvent anActionEvent) {
        Application application =
                ApplicationManager.getApplication();
        Project project = (Project) anActionEvent.getDataContext().getData(DataConstants.PROJECT);

        Axis2IdeaPlugin axis2component =
                (Axis2IdeaPlugin) application.getComponent(Axis2IdeaPlugin.class);
        axis2component.showTool(project);
    }
View Full Code Here

      return handlers;
    }
  }

  private void startup() {
    Application application = ApplicationManager.getApplication();
    if (application.isUnitTestMode()) {
      doStart();
    }
    else {
      application.executeOnPooledThread(new Runnable() {
        @Override
        public void run() {
          doStart();
        }
      });
View Full Code Here

  private static final MyClassLoader ourClassLoader = new MyClassLoader();

  protected LivePreviewLanguage(@NotNull BnfFile grammarFile) {
    super(BASE_INSTANCE, ObjectUtils.assertNotNull(grammarFile.getVirtualFile()).getPath());
    VirtualFile virtualFile = ObjectUtils.assertNotNull(grammarFile.getVirtualFile());
    Application app = ApplicationManager.getApplication();
    if (app.isUnitTestMode()) {
      myBnfFile = new SoftReference<BnfFile>(grammarFile);
      myFilePointer = null;
    }
    else {
      myFilePointer = VirtualFilePointerManager.getInstance().create(virtualFile, app, null);
View Full Code Here

    public Axis2PluginAction() {
        super("GC", "Axis2 plugins", null);
    }

    public void actionPerformed(AnActionEvent anActionEvent) {
        Application application =
                ApplicationManager.getApplication();
        Project project = (Project) anActionEvent.getDataContext().getData(DataConstants.PROJECT);

        Axis2IdeaPlugin axis2component =
                (Axis2IdeaPlugin) application.getComponent(Axis2IdeaPlugin.class);
        axis2component.showTool(project);
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.application.Application

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.