Examples of openFile()


Examples of com.intellij.openapi.fileEditor.FileEditorManager.openFile()

        }
    }

    private void openSQLConsole(ConnectionHandler connectionHandler) {
        FileEditorManager fileEditorManager = FileEditorManager.getInstance(connectionHandler.getProject());
        fileEditorManager.openFile(connectionHandler.getSQLConsoleFile(), true);
    }

    public void update(AnActionEvent e) {
        Presentation presentation = e.getPresentation();
        Project project = ActionUtil.getProject(e);
View Full Code Here

Examples of com.intellij.openapi.fileEditor.FileEditorManager.openFile()

            CompilerMessage compilerMessage = compilerMessageNode.getCompilerMessage();
            FileEditorManager editorManager = FileEditorManager.getInstance(compilerMessage.getProject());

            DatabaseEditableObjectFile databaseFile = compilerMessage.getDatabaseFile();
            if (compilerMessage.isError() || editorManager.isFileOpen(databaseFile)) {
                editorManager.openFile(databaseFile, false);
                if (compilerMessage.getContentFile() != null) {
                    BasicTextEditor textEditor = EditorUtil.getFileEditor(databaseFile, compilerMessage.getContentFile());
                    if (textEditor != null) {
                        navigateInEditor(compilerMessage, textEditor, databaseFile);
                    }
View Full Code Here

Examples of com.intellij.openapi.fileEditor.FileEditorManager.openFile()

                FileType tFileType = null;
                if (tVirtualFile != null) {
//                    tFileType = FileTypeManager.getInstance().getFileTypeByFile(tVirtualFile);
                    SwingUtilities.invokeLater(new Runnable() {
                         public void run() {
                             tManager.openFile(tVirtualFile, true);
                         }
                    });
                }
            } catch (MalformedURLException e) {
                log.error(e);
View Full Code Here

Examples of com.intellij.openapi.fileEditor.FileEditorManager.openFile()

    StartupManager.getInstance(project).runWhenProjectIsInitialized(new Runnable() {
      @Override
      public void run() {
        final FileEditorManager manager = FileEditorManager.getInstance(project);
        for (VirtualFile file : files) {
          manager.openFile(file, true);

          if (PubspecYamlUtil.PUBSPEC_YAML.equals(file.getName())) {
            final AnAction pubGetAction = ActionManager.getInstance().getAction("Dart.pub.get");
            final Module module = ModuleUtilCore.findModuleForFile(file, project);
            if (pubGetAction instanceof DartPubGetAction && module != null) {
View Full Code Here

Examples of com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile()

    installUpdateListener(project);

    FileEditorManagerEx fileEditorManager = FileEditorManagerEx.getInstanceEx(project);
    EditorWindow curWindow = fileEditorManager.getCurrentWindow();
    curWindow.split(SwingConstants.HORIZONTAL, false, virtualFile, true);
    fileEditorManager.openFile(virtualFile, true);
  }

  @Nullable
  public static PsiFile parseFile(BnfFile bnfFile, String text) {
    Language language = getLanguageFor(bnfFile);
View Full Code Here

Examples of com.lightcrafts.platform.FileChooser.openFile()

                    FilenameFilter lztFilter = new FilenameFilter() {
                        public boolean accept(File file, String name) {
                            return name.toLowerCase().endsWith(".lzt");
                        }
                    };
                    File file = chooser.openFile(
                        LOCALE.get("TemplateImportDialogTitle"),
                        dir, frame, lztFilter
                    );
                    if (file != null) {
                        importTemplate(file);
View Full Code Here

Examples of com.lightcrafts.platform.FileChooser.openFile()

        );
        search.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    FileChooser chooser = Env.getFileChooser();
                    file = chooser.openFile(
                        findTitle, chooserFile, parent,
                        ImageFilenameFilter.INSTANCE
                    );
                    if (file != null) {
                        dialog.dispose();
View Full Code Here

Examples of com.lightcrafts.platform.FileChooser.openFile()

        else if (result == 1) { // Search for the image
            FileChooser chooser = Env.getFileChooser();
            String title = LOCALE.get(
                "ImageSelectorFindDialogTitle", oldImageFile.getName()
            );
            file = chooser.openFile(
                title, chooserFile, parent, ImageFilenameFilter.INSTANCE
            );
        }
        else {
            file = null;    // Cancel
View Full Code Here

Examples of com.lightcrafts.platform.FileChooser.openFile()

        if (result == 0) {  // Yes, please search
            FileChooser chooser = Env.getFileChooser();
            String title = LOCALE.get(
                "ImageSelectorFindDialogTitle", oldImageFile.getName()
            );
            file = chooser.openFile(
                title, chooserFile, parent, ImageFilenameFilter.INSTANCE
            );
        }
        else {
            file = null;    // Cancel
View Full Code Here

Examples of com.lightcrafts.platform.FileChooser.openFile()

        }
        else {
            path = System.getProperty("user.home");
        }
        File file = new File(path);
        file = chooser.openFile(
            "Display Color Profile", file, null, null
        );
        if (file != null) {
            if (! file.isFile()) {
                alert.showAlert(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.