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

(-)a/projectui/src/org/netbeans/modules/project/ui/groups/Group.java (-1 / +2 lines)
Lines 474-481 Link Here
474
     * Change the current display name.
474
     * Change the current display name.
475
     */
475
     */
476
    public void setName(String n) {
476
    public void setName(String n) {
477
        String oldName = getNameOrNull();
477
        prefs().put(KEY_NAME, n);
478
        prefs().put(KEY_NAME, n);
478
        notifyListeners(this, "groupRename", getNameOrNull(), n);
479
        notifyListeners(this, "groupRename", oldName, n);
479
        if (this.equals(getActiveGroup())) {
480
        if (this.equals(getActiveGroup())) {
480
            EventQueue.invokeLater(new Runnable() {
481
            EventQueue.invokeLater(new Runnable() {
481
                @Override public void run() {
482
                @Override public void run() {

Return to bug 242495