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 17660
Collapse All | Expand All

(-)LookNode.java (+18 lines)
Lines 90-95 Link Here
90
        if (look != null) look.attachTo(substitute);
90
        if (look != null) look.attachTo(substitute);
91
    }
91
    }
92
92
93
94
    /** Supports equals with represented Object.
95
     *  This is required by Move[Down|Up]Action. Look at FilterNode.equals, for same requirement.
96
     * @param obj something to compare to this node or its represented Object.
97
     * @return true if this node is equal to parameter or node's represented Object is the same as the parameter.
98
     */
99
    public boolean equals (Object obj) {
100
        if ( obj == null ) {
101
            return false;
102
        }
103
        if ( super.equals (obj) ) {
104
            return true;
105
        }
106
107
        return getRepresentedObject().equals (obj)
108
            || obj.equals (getRepresentedObject());
109
    }
110
93
    
111
    
94
    // Additional methods for LookNode -----------------------------------------
112
    // Additional methods for LookNode -----------------------------------------
95
       
113
       

Return to bug 17660