Package dao

Examples of dao.IViewport


   
        for (TreePath tp : tree.getSelectionPaths()) {

            if (tp.getPathCount() == 3) {
                String groupname = tp.getPath()[1].toString();
                IViewport varname = (IViewport)((DefaultMutableTreeNode)tp.getPath()[2]).getUserObject();

                if ((tree.getSelectionCount() == 1)) {
                    if (!Helper.yesno(
                            "Remove the Sweave-tag for " + varname + "?")) {
                        return;
                    }
                }
         
                if (groupname.equals(Constants.STRING_DATA_FILES)) {
                    Controller.rmDatafilefromLatex(varname.getSweaveTag());
                }       
                if (groupname.equals(Constants.STRING_TABLES)) {
                    Controller.rmTagfromLatex(varname.getSweaveTag());
                }       
                if (groupname.equals(Constants.STRING_PLOTS)) {
                    Controller.rmTagfromLatex(varname.getSweaveTag());
                }       
                varname.setSweaveTag(null);
            }
        }
        this.refresh();
    }
View Full Code Here


         
        return this;
    }

    protected Icon getAccordingIcon(Object value) {
      IViewport ro = (IViewport) ((DefaultMutableTreeNode) value).getUserObject();
     
        // TODO: do not set tooltip in icon function
        setToolTipText(ro.getSummaryHtmlString());
        if (ro.getAttachedRObject().isEvaled()
                && (ro.getSweaveTag() != null)) {
            return iconTableAndLatex;
        }
        if (ro.getAttachedRObject().isEvaled()) {
            return iconTable;
        }
        if (ro.isInReport()) {
            return iconLatex;
        }
        return null
       
        /*
 
View Full Code Here

TOP

Related Classes of dao.IViewport

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.