Examples of LyDataObject


Examples of org.lilypondbeans.LyDataObject

        }
    }

    public boolean checkTest() {
        NbEditorDocument doc = (NbEditorDocument) UpdateNodeTask.getInstance().getLastDocument();//lastResult.getSnapshot().getSource().getDocument(false);//   ElementProvider.getInstance().getEditorCookie();//TopComponent.getRegistry().getActivated().getLookup().lookup(EditorCookie.class);
        LyDataObject o = (LyDataObject) doc.getDocumentProperties().get("stream");
        if (o.getPrimaryFile().getPath().equals("E:/Mutopia/Test.ly")) {
            OutputHandler.clear("Test");
            ListAll all = new ListAll() {

                @Override
                public void println(String test) {
View Full Code Here

Examples of org.lilypondbeans.LyDataObject

            if (checkTest()) {
                return;
            }
            view.pdfPanel.closeFile();
            NbEditorDocument doc = (NbEditorDocument) UpdateNodeTask.getInstance().getLastDocument();//lastResult.getSnapshot().getSource().getDocument(false);//   ElementProvider.getInstance().getEditorCookie();//TopComponent.getRegistry().getActivated().getLookup().lookup(EditorCookie.class);
            LyDataObject o = (LyDataObject) doc.getDocumentProperties().get("stream");

            SaveCookie sv = o.getCookie(SaveCookie.class);
            if (sv != null) {
                sv.save();
            }
            lyFileName = o.getPrimaryFile().getPath();
            //remove old
            out = LilyOptions.getTempDir();
            try {
                File files[] = new File(out).listFiles();
                for (File f : files) {
                    f.delete();
                }
            } catch (Exception ex) {
            }
            pdfFileName = out + "/" + o.getPrimaryFile().getName() + ".pdf";
            midiFileName = out + "/" + o.getPrimaryFile().getName() + ".mid";

            LILY_DIR = LilyOptions.getLilypondDir();
            Executor exe = new Executor();

            File folder = new File(LILY_DIR + "/usr/bin");
View Full Code Here

Examples of org.lilypondbeans.LyDataObject

        int line = Integer.parseInt(nr1);
        int pos = Integer.parseInt(nr2);
        //  String allText = ElementProvider.getInstance().getEditorCookie().getOpenedPanes()[0].getText();
        NbEditorDocument doc = (NbEditorDocument) UpdateNodeTask.getInstance().lastResult.getSnapshot().getSource().getDocument(false);
        LyDataObject o = (LyDataObject) doc.getDocumentProperties().get("stream");
        String test = o.getPrimaryFile().getPath();
        if (!o.getPrimaryFile().getPath().equals(file)) {
            //openFIle in Editor
            Executor.openLine(file, line);
         
           
        } else {
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.