Package com.intellij.openapi.application

Examples of com.intellij.openapi.application.Application


                            LOG.error(e.getMessage(), e);
                            plugins = new PluginGoalContainer[0];
                        }
                    }
                };
                final Application app = ApplicationManager.getApplication();
                app.runProcessWithProgressSynchronously(
                        pluginLoader,
                        "Loading plugins",
                        false,
                        project);
            }
View Full Code Here


              Icons.DOWNLOAD,
              pProblemInfo);
    }

    public void actionPerformed(final AnActionEvent pEvent) {
        final Application app = ApplicationManager.getApplication();
        app.runProcessWithProgressSynchronously(downloader,
                                                "Downloading...",
                                                true,
                                                problem.getProject());

        if (downloader.getError() != null)
View Full Code Here

                    }
                }
            }
        };

        final Application app = ApplicationManager.getApplication();
        app.runProcessWithProgressSynchronously(downloader,
                                                "Downloading...",
                                                true,
                                                project);
    }
View Full Code Here

    }


    public void start() {
        final ProgressManager progressManager = ProgressManager.getInstance();
        Application application = ApplicationManager.getApplication();

        if (application.isDispatchThread()) {
            progressManager.run(ModalTask.this);
        } else {
            Runnable runnable = new Runnable() {
                public void run() {
                    progressManager.run(ModalTask.this);
                }
            };
            application.invokeLater(runnable, ModalityState.NON_MODAL);
        }
    }
View Full Code Here

    public ConditionalLaterInvocator(Object syncObject) {
        this.syncObject = syncObject;
    }

    public void start() {
        Application application = ApplicationManager.getApplication();
        if (application.isDispatchThread()) {
            run();
        } else {
            application.invokeLater(this/*, ModalityState.NON_MODAL*/);
        }
    }
View Full Code Here

    }

    public void start() {
        final ProgressManager progressManager = ProgressManager.getInstance();
        final BackgroundTask task = BackgroundTask.this;
        Application application = ApplicationManager.getApplication();

        if (application.isDispatchThread()) {
            progressManager.run(task);
        } else {
            Runnable runnable = new Runnable() {
                public void run() {
                    progressManager.run(task);
                }
            };
            application.invokeLater(runnable, ModalityState.NON_MODAL);
        }
    }
View Full Code Here

    }

    private static boolean showWarningMessageAndConfigure(final Project project, String message) {
        Messages.showWarningDialog(project, message, JFlexBundle.message("jflex"));
        // Show settings
        final Application application = ApplicationManager.getApplication();
        application.invokeLater(new Runnable() {
            public void run() {
                ShowSettingsUtil.getInstance().editConfigurable(project, application.getComponent(JFlexConfigurable.class));
            }
        });
        return false;
    }
View Full Code Here

    public GenerationItem[] getGenerationItems(CompileContext context) {
        if (JFlex.isCompilationEnabled()) {
            Module[] affectedModules = context.getCompileScope().getAffectedModules();
            if (affectedModules.length > 0) {
                Application application = ApplicationManager.getApplication();
                return application.runReadAction(new PrepareAction(context));
            }
        }
        return EMPTY_GENERATION_ITEM_ARRAY;
    }
View Full Code Here

    }

    public GenerationItem[] generate(CompileContext context, GenerationItem[] items, VirtualFile outputRootDirectory) {
        if (JFlex.isCompilationEnabled()) {
            if (items != null && items.length > 0) {
                Application application = ApplicationManager.getApplication();
                GenerationItem[] generationItems = application.runReadAction(new GenerateAction(context, items, outputRootDirectory, ProjectRootManager.getInstance(context.getProject()).getProjectSdk()));
                for (GenerationItem item : generationItems) {
                    CompilerUtil.refreshIOFile(((JFlexGenerationItem) item).getGeneratedFile());
                }
                return generationItems;
            }
View Full Code Here

      messageWindowComponent.say("Please select an editor window with a properties file.");
    }
  }

  private MessageWindowComponent getMessageComponent() {
    Application application = ApplicationManager.getApplication();
    MessageWindowComponent messageWindowComponent = application.getComponent(MessageWindowComponent.class);
    return messageWindowComponent;
  }
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.