This concrete dialog class can be instantiated as is, or further subclassed as required.
Note: This class does not use button IDs from IDialogConstants. Instead, the ID is the index of the button in the supplied array.
7475767778798081
MapDataModel model = (MapDataModel) event.getSource().getDataModel(); BorderEditor editor = new BorderEditor((Frame) model.getValue("frame"), model); editor.show(); } catch (Exception e) { new MessageDialog(e); } }
606607608609610611612613
if (items.length == 1 && items[0] != rootNode) { doMove(items[0], false); } } } catch (Exception e) { new MessageDialog(e); } }
107108109110111112113114
Builder.markModified(); dialog.dispose(); } } catch (Exception ex) { new MessageDialog(ex); } }
255256257258259260261262
int columns[] = ((int[]) dataModel.getValue("column")); if (columns.length != 0) columnsTableModel.removeRow(columns[0]); } } catch (Exception e) { new MessageDialog(e); } }
7576777879808182
try { Color selectedColor = JColorChooser.showDialog(((Frame) event.getSource().getDataModel().getValue("frame")).getRealWidget(), "", (Color) event.getSource().getDataModel().getValue("value")); if (selectedColor != null) event.getSource().getDataModel().setValue("value", selectedColor); } catch (Exception e) { new MessageDialog(e); } }
4748495051525354555657
public Object getValue(String key) { if (key.equals("value")) { try { return ImageIconFactory.getIcon((String) super.getValue("value_str")); } catch (Exception e) { new MessageDialog(e); } } return super.getValue(key); }
7879808182838485
MapDataModel model = (MapDataModel) event.getSource().getDataModel(); Frame frame = (Frame) model.getValue("frame"); AnchorEditor editor = new AnchorEditor(frame, model); editor.show(); } catch (Exception e) { new MessageDialog(e); } }
128129130131132133134135
(Frame) event.getSource().getDataModel().getValue("frame"), (Element) event.getSource().getDataModel().getValue("node"), (WidgetUserObject) event.getSource().getDataModel().getValue("userobject")); } } catch (Exception e) { new MessageDialog(e); } }
8485868788899091
public void show() { try { dialog.initDialog(parent); dialog.show(); } catch (GUIException e) { new MessageDialog(e); } }
224225226227228229230231
} else if (name.equals("ok")) { doOK(); dialog.dispose(); } } catch (Exception e) { new MessageDialog(e); } }