Package org.jdesktop.jdic.filetypes

Examples of org.jdesktop.jdic.filetypes.Association


    }

    private void unregister(File showFile) {
        try {
            if (shouldUnregister) {
                Association assoc = getFileAccociation(FileExtensionFilter.getExtension(showFile));
                if (assoc != null) {
                    assocService.unregisterSystemAssociation(assoc);
                }
            }
        } catch (AssociationNotRegisteredException e) {
View Full Code Here


        try {
            if (window == null
                    || Util
                            .showConfirmDialog(window, "Filtype?",
                                    "Det er ingen applikasjon assosiert med denne file, vil du �pne med teksteditor?")) {
                Association assoc = getFileAccociation(".txt");

                Association newAssoc = new Association();

                newAssoc.addFileExtension(FileExtensionFilter.getExtension(showFile));
                Action openAction = new Action("open", assoc.getActionByVerb("open").getCommand());
                newAssoc.addAction(openAction);

                assocService.registerSystemAssociation(newAssoc);
                shouldUnregister = true;
                return true;
            }
View Full Code Here

TOP

Related Classes of org.jdesktop.jdic.filetypes.Association

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.