Пример #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();
 }
Пример #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();
 }
Пример #3
0
 /** Close the properties dialog if it is open. */
 public void closePropertiesDialog() {
   if (propertiesDialog != null) {
     propertiesDialog.close();
   }
 }
Пример #4
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   active = false;
 }
Пример #5
0
 private void showProperties() {
   PropertiesDialog dialog = new PropertiesDialog(getShell());
   dialog.setProperties(mReader.getProperties());
   dialog.open();
 }