for (MultiViewRow row : rows) {
openAsset(row.uuid);
}
}
};
RuleViewer rv = new RuleViewer(a, edit);
addTab(a.metaData.name, true, rv, uuid);
rv.setCloseCommand(new Command() {
public void execute() {
close(uuid);
}
});
// When model is saved update the package view if it is
// opened.
if (a.metaData.format.equals(AssetFormats.MODEL)) {
Command command =new Command() {
public void execute() {
PackageEditor packageEditor = openedPackageEditors.get(a.metaData.packageName);
if (packageEditor != null) {
packageEditor.reload();
}
}
};
rv.setCheckedInCommand( command );
rv.setArchiveCommand( command );
}
LoadingPopup.close();
}
});