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.
if (DialogDisplayer.getDefault().notify(descriptor)==DialogDescriptor.OK_OPTION) {
String macroName = panel.getNameValue().trim();
return model.createMacro(MimePath.EMPTY, macroName);
final Macro macro = model.createMacro(MimePath.EMPTY, macroName);
sorter.resortAfterModelChange();
int sel = sorter.viewIndex(model.getAllMacros().size() - 1);
tMacros.getSelectionModel().setSelectionInterval(sel, sel);
tMacros.scrollRectToVisible(tMacros.getCellRect(sel, 0, true));
return macro;
}
return null;
tableHeader.repaint();
/**
* Sorts the table after the model has changed. The current sort column and
* direction is used.
*/
public final void resortAfterModelChange() {
sortingStatusChanged();
public void setSortingStatus(int column, int status) {
Directive directive = getDirective(column);
public int modelIndex(int viewIndex) {
return getViewToModel()[viewIndex].modelIndex;
public int viewIndex(int modelIndex) {
return getModelToView()[modelIndex];
private int[] getModelToView() {
if (modelToView == null) {