Examples of openFile()


Examples of br.com.moonjava.flight.dao.financeiro.OperadoraDeCartaoDAO.openFile()

  }

  @Override
  public boolean creditar(Cartao cartao) {
    OperadoraDeCartaoDAO operadora = new OperadoraDeCartaoDAO();
    operadora.openFile();
    List<Cartao> cartoes = operadora.readFile();

    boolean valid = false;

    for (Cartao card : cartoes) {
View Full Code Here

Examples of ca.pgon.helpers.iterable.FileLinesIterable.openFile()

   * @throws FileNotFoundException
   *             FileNotFoundException
   */
  public static FileLinesIterable readFileLinesIteration(File file) throws FileNotFoundException {
    FileLinesIterable result = new FileLinesIterable();
    result.openFile(file);
    return result;
  }

  /**
   * Opens a file and iterates over all the lines.
View Full Code Here

Examples of com.google.gdata.devtools.eclipse.ProjectCreator.openFile()

          getErrorMessage());
      // 5% work
      IFile templateFile = jetGateWay.addTemplateToProject(mainPage.getProjectName() + "/src",
          templateContent, monitor, (int) (0.05 * totalNoOfTicks));
      // 15% work
      jetGateWay.openFile(templateFile, getShell(), monitor, (int) (0.15 * totalNoOfTicks));
    } catch(CoreException e) {
      e.printStackTrace();
      ExceptionHandler.throwCoreException(e.getMessage(), e);
    } finally {
      monitor.done();
View Full Code Here

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

                int selectedRow = getSelectedRow();
                UncommittedChange change = (UncommittedChange) getModel().getValueAt(selectedRow, 0);
                FileEditorManager fileEditorManager = FileEditorManager.getInstance(getProject());
                VirtualFile virtualFile = VirtualFileManager.getInstance().findFileByUrl(change.getFilePath());
                if (virtualFile != null) {
                    fileEditorManager.openFile(virtualFile, true);
                }
            }

        }
    }
View Full Code Here

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

                }
            } else if (lastPathEntity instanceof DBObjectBundle) {
                DBObjectBundle objectBundle = (DBObjectBundle) lastPathEntity;
                ConnectionHandler connectionHandler = objectBundle.getConnectionHandler();
                FileEditorManager fileEditorManager = FileEditorManager.getInstance(connectionHandler.getProject());
                fileEditorManager.openFile(connectionHandler.getSQLConsoleFile(), true);
            }
        }
    }
   
/*    @Override
View Full Code Here

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

    }

    @Override
    public void actionPerformed(AnActionEvent e) {
        FileEditorManager fileEditorManager = FileEditorManager.getInstance(connectionHandler.getProject());
        fileEditorManager.openFile(connectionHandler.getSQLConsoleFile(), true);
    }
}
View Full Code Here

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

                if (virtualFile != null) {
                    if (virtualFile instanceof SourceCodeFile) {
                        SourceCodeFile sourceCodeFile = (SourceCodeFile) virtualFile;
                        DatabaseEditableObjectFile databaseFile = sourceCodeFile.getDatabaseFile();
                        if (!editorManager.isFileOpen(databaseFile)) {
                            editorManager.openFile(databaseFile, requestFocus);
                        }
                        BasicTextEditor textEditor = EditorUtil.getFileEditor(databaseFile, virtualFile);
                        descriptor.navigateIn(textEditor.getEditor());
                        return;
                    }
View Full Code Here

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

                @Override
                public void execute() {
                    if (isFileOpened(object) || databaseFile.preOpen()) {
                        DatabaseBrowserManager.AUTOSCROLL_FROM_EDITOR.set(scroll);
                        FileEditorManager fileEditorManager = FileEditorManager.getInstance(object.getProject());
                        fileEditorManager.openFile(databaseFile, true);
                        DatabaseBrowserManager.AUTOSCROLL_FROM_EDITOR.set(true);
                    }
                }
            }.start();
        }
View Full Code Here

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

                @Override
                public void execute() {
                    if (isFileOpened(schemaObject) || databaseFile.preOpen()) {
                        DatabaseBrowserManager.AUTOSCROLL_FROM_EDITOR.set(scroll);
                        FileEditorManager fileEditorManager = FileEditorManager.getInstance(object.getProject());
                        FileEditor[] fileEditors = fileEditorManager.openFile(databaseFile, true);
                        for (FileEditor fileEditor : fileEditors) {
                            if (fileEditor instanceof SourceCodeMainEditor) {
                                SourceCodeMainEditor sourceCodeEditor = (SourceCodeMainEditor) fileEditor;
                                EditorUtil.selectEditor(databaseFile, fileEditor);
                                sourceCodeEditor.navigateTo(object);
View Full Code Here

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

    public void reopenEditor(DBSchemaObject object) {
        FileEditorManager fileEditorManager = FileEditorManager.getInstance(object.getProject());
        VirtualFile virtualFile = findDatabaseFile(object);
        if (fileEditorManager.isFileOpen(virtualFile)) {
            fileEditorManager.closeFile(virtualFile);
            fileEditorManager.openFile(virtualFile, false);
        }
    }

    public void fileOpened(@NotNull FileEditorManager source, @NotNull VirtualFile file) {
        if (file instanceof DatabaseEditableObjectFile) {
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.