ts.setSelectionMode(KongaTree.SelectionMode.SINGLE_TREE_SELECTION);
return ts;
}
private KongaDialog createDialog() {
KongaDialog dlg = null;
String title = PackageResources.PropertiesDialog.getTitle(project);
Window owner = trigger.getDialogOwner();
if (owner instanceof Frame) {
dlg = new KongaDialog((Frame) owner, title, false);
} else if (owner instanceof Dialog) {
dlg = new KongaDialog((Dialog) owner, title, null, false);
} else {
throw new IllegalArgumentException("Invalid dialog owner: " + (owner != null ? owner.getClass() : "null")); //$NON-NLS-1$ //$NON-NLS-2$
}
createContentPane(dlg);
dlg.pack();
dlg.setLocationRelativeTo(owner);
dlg.manageLocation(MessagePropertiesDialog.class);
dlg.addWindowListener(new WindowAdapter() {
@Override
public void windowClosed(WindowEvent e) {
dialogGate.setEnabled(true);
MessagePropertiesDialog.this.dialog = null;