Examples of openDocument()


Examples of org.freeplane.features.ui.ViewController.openDocument()

      final String freeplaneLogDirectoryPath = LogUtils.getLogDirectory();
      final File file = new File(freeplaneLogDirectoryPath);
      if(file.isDirectory()){
        final ViewController viewController = Controller.getCurrentController().getViewController();
        try {
                  viewController.openDocument(file.toURL());
                }
                catch (Exception ex) {
                }
      }
        }
View Full Code Here

Examples of org.icepdf.ri.common.SwingController.openDocument()

                        ComponentKeyBinding.install(controller, viewerComponentPanel);
                        controller.getDocumentViewController().setAnnotationCallback(
                                new org.icepdf.ri.common.MyAnnotationCallback(
                                controller.getDocumentViewController()));
                        dialog.add(viewerComponentPanel);
                        controller.openDocument(path);
                }
                Dimension size = getFullScreen();
                dialog.setSize(size);
                dialog.setVisible(true);
        }
View Full Code Here

Examples of org.icepdf.ri.common.SwingController.openDocument()

                        // add interactive mouse link annotation support via callback
                        controller.getDocumentViewController().setAnnotationCallback(
                                new org.icepdf.ri.common.MyAnnotationCallback(
                                controller.getDocumentViewController()));
                        dialog.add(viewerComponentPanel);
                        controller.openDocument(path);
                }
                Dimension size = getFullScreen();
                dialog.setSize(size);
                dialog.setVisible(true);
        }
View Full Code Here

Examples of org.openide.cookies.EditorCookie.openDocument()

        DataObject dataObject = getDataObject(url);
        if (dataObject != null) {
            EditorCookie ec = dataObject.getLookup().lookup(EditorCookie.class);
            if (ec != null) {
                try {
                    StyledDocument doc = ec.openDocument();
                    JEditorPane[] eps = ec.getOpenedPanes();
                    if (eps != null && eps.length > 0) {
                        JumpList.addEntry(eps[0], NbDocument.findLineOffset(doc, l.getLineNumber()) + column);
                    }
                } catch (java.io.IOException ioex) {
View Full Code Here

Examples of org.openide.cookies.EditorCookie.openDocument()

        if (ec == null) {
            return "";
        }
        StyledDocument doc;
        try {
            doc = ec.openDocument();
        } catch (IOException ex) {
            ErrorManager.getDefault().notify(ex);
            return "";
        }
        try {
View Full Code Here

Examples of org.openide.cookies.EditorCookie.openDocument()

        if (ec == null) {
            return ops[0];
        }
        final StyledDocument doc;
        try {
            doc = ec.openDocument();
        } catch (IOException ex) {
            ErrorManager.getDefault().notify(ex);
            return ops[0];
        }
        final int offset = findLineOffset(doc, (int) lineNumber);
View Full Code Here

Examples of org.openide.cookies.EditorCookie.openDocument()

        if (ec == null) {
            return null;
        }
        final StyledDocument doc;
        try {
            doc = ec.openDocument();
        } catch (IOException ex) {
            ErrorManager.getDefault().notify(ex);
            return null;
        }
        final int offset = findLineOffset(doc, methodLineNumber);
View Full Code Here

Examples of org.openide.cookies.EditorCookie.openDocument()

                EditorCookie ec = (EditorCookie) dobj.getCookie(EditorCookie.class);
                if (ec == null) {
                    return;
                }
                try {
                    doc = ec.openDocument();
                } catch (IOException ex) {
                    ErrorManager.getDefault().notify(ex);
                    return;
                }
            } catch (DataObjectNotFoundException ex) {
View Full Code Here

Examples of org.openide.cookies.EditorCookie.openDocument()

            EditorCookie ed = dob.getLookup().lookup(EditorCookie.class);
            if (ed != null && file == dob.getPrimaryFile()) {
                if (lineNum == -1) {
                    ed.open();
                } else {
                    ed.openDocument();
                    try {
                        Line l = ed.getLineSet().getOriginal(lineNum - 1);
                        if (! l.isDeleted()) {
                            l.show(Line.ShowOpenType.REUSE, Line.ShowVisibilityType.FOCUS);
                        }
View Full Code Here

Examples of org.openide.cookies.EditorCookie.openDocument()

            DataObject dob = DataEditorSupport.findDataObject(line);
            EditorCookie ec = (EditorCookie) dob.getCookie(EditorCookie.class);

            if (ec != null) { // Only for editable dataobjects
                try {
                    doc = ec.openDocument ();                   
                    RequestProcessor.getDefault().post(this);                   
                } catch (IOException e) {
                }
            }
        }
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.