Example #1
0
 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();
 }
Example #2
0
 /**
  * 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();
 }
Example #3
0
 /** Close the properties dialog if it is open. */
 public void closePropertiesDialog() {
   if (propertiesDialog != null) {
     propertiesDialog.close();
   }
 }