Package gri.gui.files.views

Examples of gri.gui.files.views.FileView


       
        if (file != null) {
            String ext = FileUtil.splitFileName(fileName)[1];
            List views = viewManager.getViewsForExtension(ext);
            for (int i=0; i<views.size(); i++) {
                FileView view = (FileView)views.get(i);
                cboModel.addElement(new FileViewItem(view));
            }
           
            if (views.size() == 0)
                cboModel.addElement("(none)");
View Full Code Here


    }
   
    public void actionPerformed(ActionEvent e) {
        String cmd = e.getActionCommand();
        if (cmd.equals("view")) {
            FileView view = getSelectedFileView();
           
            if (this.file != null && view != null) {
                try {
                    File file = FileUtil.copyToTempFile(this.file);
                    view.invokeView(file);
                }
                catch(Exception ex) {
                    messenger.error(ex);
                }
            }
View Full Code Here

TOP

Related Classes of gri.gui.files.views.FileView

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.