Package org.openide.cookies

Examples of org.openide.cookies.SaveCookie


                    Statement stmt = null;
                    OracleConnection conn = null;
                    try {
                        file = FileUtil.toFileObject(selFile);
                        dob = DataObject.find(file);
                        SaveCookie cookie = dob.getCookie(SaveCookie.class);
                        if (cookie != null) {
                            cookie.save();
                        }
                    } catch (IOException ex) {
                        Exceptions.printStackTrace(ex);
                    }
                    if (ou.getIsConnected()) {
View Full Code Here


            }
            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 {
View Full Code Here

        private final FileChangeListener listener;

        public GradleDataEditor() {
            super(GradleDataObject.this, null, new GradleEnv(GradleDataObject.this));

            save = new SaveCookie() {
                @Override
                public void save() throws IOException {
                    saveDocument();
                }
View Full Code Here

            try {
                FileObject fo = FileUtil.toFileObject(filesArray[i]);
                DataObject dataObj = DataObject.find(fo);
                if (dataObj != null) {
                    SaveCookie cookie = dataObj.getLookup().lookup(SaveCookie.class);
                    if (cookie != null) {
                        cookie.save();
                    }
                }
            } catch (DataObjectNotFoundException ex) {
                Exceptions.printStackTrace(ex);
            } catch (IOException ex) {
View Full Code Here

TOP

Related Classes of org.openide.cookies.SaveCookie

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.