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

(-)editor.macros/src/org/netbeans/modules/editor/macros/storage/ui/MacrosPanel.java (-1 / +3 lines)
Lines 422-428 Link Here
422
422
423
        if (DialogDisplayer.getDefault().notify(descriptor)==DialogDescriptor.OK_OPTION) {
423
        if (DialogDisplayer.getDefault().notify(descriptor)==DialogDescriptor.OK_OPTION) {
424
            String macroName = panel.getNameValue().trim();
424
            String macroName = panel.getNameValue().trim();
425
            return model.createMacro(MimePath.EMPTY, macroName);
425
	    final Macro macro = model.createMacro(MimePath.EMPTY, macroName);
426
	    sorter.resortAfterModelChange();
427
            return macro;
426
        }
428
        }
427
        return null;
429
        return null;
428
    }
430
    }
(-)editor.macros/src/org/netbeans/modules/editor/macros/storage/ui/TableSorter.java (+7 lines)
Lines 176-181 Link Here
176
            tableHeader.repaint();
176
            tableHeader.repaint();
177
        }
177
        }
178
    }
178
    }
179
    /**
180
     * Sorts the table after the model has changed. The current sort column and
181
     * direction is used.
182
     */
183
    public final void resortAfterModelChange() {
184
	sortingStatusChanged();
185
    }
179
186
180
    public void setSortingStatus(int column, int status) {
187
    public void setSortingStatus(int column, int status) {
181
        Directive directive = getDirective(column);
188
        Directive directive = getDirective(column);

Return to bug 123946