Package org.openide.cookies

Examples of org.openide.cookies.OpenCookie.open()


        DataObject newOne =
                templateDataObject.createFromTemplate(targetDataFolder, name, replacements);

        OpenCookie openCookie = newOne.getCookie(OpenCookie.class);
        if (openCookie != null) {
            openCookie.open();
        }
       
        return Collections.singleton(newOne.getPrimaryFile());
    }
View Full Code Here


        DataObject newOne =
                templateDataObject.createFromTemplate(targetDataFolder, name, replacements);
        OpenCookie open = newOne.getCookie(OpenCookie.class);
        if (open != null) {  
            open.open();
        }

        return Collections.singleton(newOne.getPrimaryFile());
    }
View Full Code Here

            public void run() {
                try {
                    FileObject fob = FileUtil.createData(new File(lyFile));
                    DataObject data = DataObject.find(fob);
                    OpenCookie cookie = data.getCookie(OpenCookie.class);
                    cookie.open();
                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
        };
View Full Code Here

            result.delete();
            throw new IOException(sourceexception.getLocalizedMessage());
        }
        OpenCookie open = (OpenCookie) result.getCookie(OpenCookie.class);
        if (open != null) {
            open.open();
        }
        OOTools.installFiles(
        OOIDLGlobalSettings.getDefault().getSDKDirectory(),
        OOIDLGlobalSettings.getDefault().getOfficeDirectory() );
        return Collections.singleton(result);
View Full Code Here

            result.delete();
            throw new IOException(sourceexception.getLocalizedMessage());
        }
        OpenCookie open = (OpenCookie) result.getCookie(OpenCookie.class);
        if (open != null) {
            open.open();
        }
        OOTools.installFiles(
        OOIDLGlobalSettings.getDefault().getSDKDirectory(),
        OOIDLGlobalSettings.getDefault().getOfficeDirectory() );
        return Collections.singleton(result);
View Full Code Here

            FileObject file = subFolder.createData(name);
            WizardUtils.generateFile(file, libraryPath, name, src, this.safeName, this.moduleName);
            DataObject dObj = DataObject.find(file);
            OpenCookie oc = (OpenCookie) dObj.getCookie(OpenCookie.class);
            if (oc != null) {
                oc.open();
            }
        }
        //(final FileObject file, String ver, String type, String ext, Object params)
        return Collections.EMPTY_SET;
    }
View Full Code Here

            FileObject file = subFolder.createData(name);
            WizardUtils.generateFile(file, libraryPath, name, src, this.safeName, this.moduleName);
            DataObject dObj = DataObject.find(file);
            OpenCookie oc = (OpenCookie) dObj.getCookie(OpenCookie.class);
            if (oc != null) {
                oc.open();
            }
        }
        //(final FileObject file, String ver, String type, String ext, Object params)
        return Collections.EMPTY_SET;
    }
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.