/** * Create, if needed, and show the properties dialog. * * @param canvas The canvas we are in. */ public void showPropertiesDialog(StationModelCanvas canvas) { this.canvas = canvas; if (propertiesDialog == null) { propertiesDialog = new PropertiesDialog(this, canvas); } propertiesDialog.show(); }
public void setPropertiesOnSelected() { List selected = getSelection(); if (selected == null || selected.size() == 0) { GuiUtils.showOkDialog( null, "Set range on selected", new JLabel("No shapes are selected"), null); return; } PropertiesDialog propertiesDialog = new PropertiesDialog(selected, this); propertiesDialog.show(); }