Package org.openide.cookies

Examples of org.openide.cookies.SaveCookie.save()


                    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


            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

                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
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.