Examples of DeleteCookieInterface


Examples of org.netbeans.modules.languages.pl_sql.editor.explorer.nodes.actions.DeleteCookieInterface

    @Override
    protected void performAction(Node[] arg0) {
        //Object cls = arg0[0];
        //JOptionPane.showMessageDialog(null, "Object is " + cls.getClass().getName());
        Node nd = arg0[0];
        DeleteCookieInterface delete = nd.getCookie(DeleteCookieInterface.class);
        if (delete != null) {
            int ret = JOptionPane.showConfirmDialog(null,
                    NbBundle.getMessage(Utils.getCommonClass(), "LBL_DeleteConfirmMsg", delete.toString()),
                    Utils.getBundle().getString("LBL_DeleteConfirmCaptionMsg"), JOptionPane.YES_NO_OPTION,
                    JOptionPane.QUESTION_MESSAGE);
            if (ret == JOptionPane.YES_OPTION) {
                Node node = nd.getParentNode();
                delete.Delete();
                RefreshCookieInterface refresh = null;
                if (node != null) {
                    refresh = node.getCookie(RefreshCookieInterface.class);
                }
                try {
View Full Code Here

Examples of org.netbeans.modules.languages.pl_sql.editor.explorer.nodes.actions.DeleteCookieInterface

    protected boolean enable(Node[] activatedNodes) {
        if (activatedNodes.length == 0 || activatedNodes.length > 1) {
            return false;
        }
        Node node = activatedNodes[0];
        DeleteCookieInterface delete = node.getCookie(DeleteCookieInterface.class);
        if (delete != null && !delete.getIsConnected()) {
            return true;
        }
        return false;
    }
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.