This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 52617
Collapse All | Expand All

(-)MethodNode.java (+9 lines)
Lines 15-20 Link Here
15
import org.openide.actions.OpenAction;
15
import org.openide.actions.OpenAction;
16
import org.openide.actions.PropertiesAction;
16
import org.openide.actions.PropertiesAction;
17
import org.openide.cookies.OpenCookie;
17
import org.openide.cookies.OpenCookie;
18
import org.openide.src.MethodParameter;
18
import org.openide.src.nodes.DefaultFactory;
19
import org.openide.src.nodes.DefaultFactory;
19
import org.openide.util.actions.SystemAction;
20
import org.openide.util.actions.SystemAction;
20
import org.openide.util.Utilities;
21
import org.openide.util.Utilities;
Lines 81-86 Link Here
81
    }
82
    }
82
    
83
    
83
    public boolean canDestroy(){
84
    public boolean canDestroy(){
85
        if ("findByPrimaryKey".equals(method.getName().getName())) { //NOI18N
86
            MethodParameter[] par = method.getParameters(); 
87
            if (par.length == 1) {
88
                if ("java.lang.String".equals(par[0].getType().getClassName().getFullName())) {  //NOI18N
89
                    return false;
90
                }
91
            }
92
        }
84
        return true;
93
        return true;
85
    }
94
    }
86
    
95
    

Return to bug 52617