Example #1
0
  /**
   * Called when a property in the WorkPanelState is changed. This method calls initPanels to
   * rebuild the user interface to reflect the current application state.
   *
   * @param event The work panel state change event. All other event types are ignored.
   */
  public void propertyChange(PropertyChangeEvent event) {
    /*log.fine("void propertyChange(PropertyChangeEvent): called");*/

    // Check that the property change was sent by a WorkPanelState
    if (event.getSource() instanceof WorkPanelState) {
      // Get the state
      String state = ((WorkPanelState) event.getSource()).getState();

      // Check what the state to set is
      if (state.equals(WorkPanelState.NOT_SAVED)) {
        // Set the Cancel and Apply buttons to enabled
        cancelButton.setEnabled(true);
        applyButton.setEnabled(true);
      } else if (state.equals(WorkPanelState.READY)) {
        // Set the Cancel and Apply buttons to disabled
        cancelButton.setEnabled(false);
        applyButton.setEnabled(false);
      } else if (state.equals(WorkPanelState.NOT_INITIALIZED)) {
        // Disable all the buttons
        okButton.setEnabled(false);
        cancelButton.setEnabled(false);
        applyButton.setEnabled(false);
      }
    }
  }
  /**
   * Invoked when a property changes. <code>MetalRootPaneUI</code> is primarily interested in events
   * originating from the <code>JRootPane</code> it has been installed on identifying the property
   * <code>windowDecorationStyle</code>. If the <code>windowDecorationStyle</code> has changed to a
   * value other than <code>JRootPane.NONE</code>, this will add a <code>Component</code> to the
   * <code>JRootPane</code> to render the window decorations, as well as installing a <code>Border
   * </code> on the <code>JRootPane</code>. On the other hand, if the <code>windowDecorationStyle
   * </code> has changed to <code>JRootPane.NONE</code>, this will remove the <code>Component</code>
   * that has been added to the <code>JRootPane</code> as well resetting the Border to what it was
   * before <code>installUI</code> was invoked.
   *
   * @param e A PropertyChangeEvent object describing the event source and the property that has
   *     changed.
   */
  public void propertyChange(PropertyChangeEvent e) {
    super.propertyChange(e);

    String propertyName = e.getPropertyName();
    if (propertyName == null) {
      return;
    }

    if (propertyName.equals("windowDecorationStyle")) {
      JRootPane root = (JRootPane) e.getSource();
      int style = root.getWindowDecorationStyle();

      // This is potentially more than needs to be done,
      // but it rarely happens and makes the install/uninstall process
      // simpler. MetalTitlePane also assumes it will be recreated if
      // the decoration style changes.
      uninstallClientDecorations(root);
      if (style != JRootPane.NONE) {
        installClientDecorations(root);
      }
    } else if (propertyName.equals("ancestor")) {
      uninstallWindowListeners(root);
      if (((JRootPane) e.getSource()).getWindowDecorationStyle() != JRootPane.NONE) {
        installWindowListeners(root, root.getParent());
      }
    }
    return;
  }
Example #3
0
 @Override
 public void propertyChange(PropertyChangeEvent e) {
   if (e.getPropertyName().equals(Roster.ADD)) {
     fireTableDataChanged();
   } else if (e.getPropertyName().equals(Roster.REMOVE)) {
     fireTableDataChanged();
   } else if (e.getPropertyName().equals(Roster.SAVED)) {
     // TODO This really needs to do something like find the index of the roster entry here
     if (e.getSource() instanceof RosterEntry) {
       int row = Roster.getDefault().getGroupIndex(rosterGroup, (RosterEntry) e.getSource());
       fireTableRowsUpdated(row, row);
     } else {
       fireTableDataChanged();
     }
   } else if (e.getPropertyName().equals(RosterGroupSelector.SELECTED_ROSTER_GROUP)) {
     setRosterGroup((e.getNewValue() != null) ? e.getNewValue().toString() : null);
   } else if (e.getPropertyName().startsWith("attribute")
       && e.getSource() instanceof RosterEntry) { // NOI18N
     int row = Roster.getDefault().getGroupIndex(rosterGroup, (RosterEntry) e.getSource());
     fireTableRowsUpdated(row, row);
   } else if (e.getPropertyName().equals(Roster.ROSTER_GROUP_ADDED)
       && e.getNewValue().equals(rosterGroup)) {
     fireTableDataChanged();
   }
 }
Example #4
0
 @Override
 public void propertyChange(java.beans.PropertyChangeEvent e) {
   if (Control.SHOW_PROPERTY) {
     log.debug(
         "Property change ({}) for: ({}) old: {}, new: {}",
         e.getPropertyName(),
         e.getSource().toString(),
         e.getOldValue(),
         e.getNewValue());
   }
   if (e.getPropertyName().equals(Train.TRAIN_MOVE_COMPLETE_CHANGED_PROPERTY)
       || e.getPropertyName().equals(Train.BUILT_CHANGED_PROPERTY)
       || e.getPropertyName().equals(Train.TRAIN_MODIFIED_CHANGED_PROPERTY)) {
     clearAndUpdate();
   }
   if ((e.getPropertyName().equals(RollingStock.ROUTE_LOCATION_CHANGED_PROPERTY)
           && e.getNewValue() == null)
       || (e.getPropertyName().equals(RollingStock.ROUTE_DESTINATION_CHANGED_PROPERTY)
           && e.getNewValue() == null)
       || e.getPropertyName().equals(RollingStock.TRAIN_CHANGED_PROPERTY)) {
     // remove car from list
     if (e.getSource().getClass().equals(Car.class)) {
       Car car = (Car) e.getSource();
       checkBoxes.remove("p" + car.getId());
       checkBoxes.remove("s" + car.getId());
       checkBoxes.remove("m" + car.getId());
       log.debug("Car ({}) removed from list", car.toString());
     }
     update();
   }
 }
  /**
   * Reacts to property change events 'editorClosing', 'closeFrame', and 'name'.
   *
   * @param e the property change event.
   */
  public void propertyChange(PropertyChangeEvent e) {

    // Handles the removal of editor frames from desktop
    String name = e.getPropertyName();

    if ("editorClosing".equals(name)) {

      // find NewValue in String array, and remove
      for (int n = 0; n < sessionNodeKeys.size(); n++) {
        if (e.getNewValue().equals((sessionNodeKeys.get(n)))) {
          sessionNodeKeys.remove(n);
        }
      }
    } else if ("closeFrame".equals(e.getPropertyName())) {
      if (getFramesMap().containsKey(e.getSource())) {
        Object frameObject = getFramesMap().get(e.getSource());
        JInternalFrame frame = (JInternalFrame) frameObject;
        frame.setVisible(false);
        frame.dispose();
      }
    } else if ("name".equals(e.getPropertyName())) {
      if (getFramesMap().containsKey(e.getSource())) {
        Object frameObject = getFramesMap().get(e.getSource());
        JInternalFrame frame = (JInternalFrame) frameObject;
        String _name = (String) (e.getNewValue());
        frame.setTitle(_name);
        setMainTitle(_name);
      }
    }
  }
Example #6
0
  public void propertyChange(PropertyChangeEvent e) {
    if (e.getSource() instanceof JComponent && "name".equals(e.getPropertyName())) {
      // Note - most components do NOT fire a property change on
      // setName(), but it is possible for this to be done intentionally
      if (e.getOldValue() instanceof String) {
        if (logger.isLoggable(Level.FINE)) {
          logger.fine(
              "Name of component changed from "
                  + e.getOldValue()
                  + // NOI18N
                  " to "
                  + e.getNewValue()
                  + ".  Removing any values for "
                  + // NOI18N
                  e.getOldValue()
                  + " from the wizard data map"); // NOI18N
        }
        wizardPage.removeFromMap(e.getOldValue());
      }

      if (logger.isLoggable(Level.FINE)) {
        logger.fine(
            "Possibly update map for renamed component "
                + // NOI18N
                e.getSource());
      }

    } else if (e.getSource() instanceof JFormattedTextField
        && "value".equals(e.getPropertyName())) {
      fire(e);
      wizardPage.maybeUpdateMap((JComponent) e.getSource());
    }
  }
Example #7
0
  private void handleTaskEvents(PropertyChangeEvent evt) {
    String taskId = null;
    if (evt.getSource() instanceof SolaTask) {
      taskId = ((SolaTask) evt.getSource()).getId();
    }

    if (evt.getPropertyName().equals(SolaTask.EVENT_STATE)) {
      StateValue state = (StateValue) evt.getNewValue();
      if (state.name().equalsIgnoreCase(SolaTask.TASK_DONE)) {
        tasks.remove(taskId);
      }
    }

    if (evt.getPropertyName().equals(SolaTask.REMOVE_TASK)) {
      tasks.remove(taskId);
    }

    if (evt.getPropertyName().equals(SolaTask.EXCEPTION_RISED)) {
      if (Throwable.class.isAssignableFrom(evt.getNewValue().getClass())) {
        UncaughtExceptionHandler defaultHandler = Thread.getDefaultUncaughtExceptionHandler();
        if (defaultHandler != null) {
          Thread.getDefaultUncaughtExceptionHandler()
              .uncaughtException(Thread.currentThread(), (Throwable) evt.getNewValue());
        } else {
          DefaultExceptionHandler.handleException((Throwable) evt.getNewValue());
        }
      }
      if (taskId != null) {
        tasks.remove(taskId);
      }
    }

    propertySupport.firePropertyChange(evt);
  }
Example #8
0
 @Override
 public void propertyChange(PropertyChangeEvent evt) {
   if (evt.getSource() instanceof RosterEntry) {
     if (evt.getPropertyName().equals(RosterEntry.ID)) {
       this.entryIdChanged((RosterEntry) evt.getSource());
     }
   }
 }
Example #9
0
  @Override
  public void referenceModified(RefObject target, PropertyChangeEvent evt) {
    if (((RefObject) evt.getNewValue()).refMetaObject().refGetValue("name").equals("Model")) return;
    if (!(makeKuaba(evt.getPropertyName()))) return;

    RefObject source = (RefObject) evt.getSource();
    if (!KuabaSubsystem.facade.existsDomainIdea(target)) {
      PropertyChangeEvent nameEvt =
          new PropertyChangeEvent(target, "name", "", target.refGetValue("name"));
      PropertyChangeListener listener = KuabaSubsystem.eventPump.getObserver(target);
      if (listener == null) {
        listener = this.createListener(target);
        if (listener == null) return;
        KuabaSubsystem.eventPump.addModelElementObserver(listener, target);
      }
      listener.propertyChange(nameEvt);
      Reference ref =
          MofHelper.getReference(evt.getPropertyName(), (MofClass) source.refMetaObject());
      if (!(ref == null)) {
        String otherSide = MofHelper.getExposedEndName(ref);
        try {
          PropertyChangeEvent referenceEvt =
              new PropertyChangeEvent(target, otherSide, null, target.refGetValue(otherSide));
          listener.propertyChange(referenceEvt);
        } catch (Exception e) {
          // TODO: handle exception
        }
      }
    }
    // para evitar a criação do feature
    if (evt.getPropertyName().equals("feature")) return;

    // aqui que cria as outras questões do tipo participant e owner
    Decision d =
        KuabaSubsystem.facade.referenceChanged(
            (RefObject) evt.getSource(), target, evt.getPropertyName());
    Idea sourceDomainIdea =
        KuabaHelper.getDomainIdea(
            modelRepository(),
            KuabaSubsystem.resolver.resolveXmiId((RefObject) evt.getSource()),
            this.getNamePropertyValue((RefObject) evt.getSource()));
    Idea sourceDesignIdea =
        KuabaHelper.getAcceptedDesignIdea(
            sourceDomainIdea,
            (String) ((RefObject) evt.getSource()).refMetaObject().refGetValue("name"));

    askReferenceChangeArguments(
        d.getConcludes(),
        (Question)
            KuabaHelper.getReasoningElementInTree(sourceDesignIdea, evt.getPropertyName() + "?"),
        evt);

    // tirando as ideias de dominio extras
    if (sourceDesignIdea.getHasText().equals("AssociationEnd")) {
      sourceDomainIdea.listSuggests().next().remove();
      sourceDomainIdea.remove();
    }
  }
 public void propertyChange(final PropertyChangeEvent e) {
   if ("defaultButton".equals(e.getPropertyName())) {
     if (e.getNewValue() == null) {
       unloadDefaultButtonKeyBindings((JComponent) e.getSource());
     } else {
       loadDefaultButtonKeyBindings((JComponent) e.getSource());
     }
   }
 }
 public void propertyChange(PropertyChangeEvent evt) {
   if (DEBUG) System.out.println("GlobalRepository propertyChange() event: " + evt); // NOI18N
   if (evt.getSource() instanceof Layer) {
     Layer layer = (Layer) evt.getSource();
     if (evt.getPropertyName().equals(Editable.PROPERTY_NAME)) {
       // layer name has changed re-key it in the layer table
       this.layers.remove(evt.getOldValue());
       this.layers.put((String) evt.getNewValue(), layer);
     }
   }
 }
Example #12
0
 public void propertyChange(PropertyChangeEvent event) {
   if (event.getSource() instanceof TaxiwayParkingModel) {
     if (event.getPropertyName().equals("name"))
       updateJetwayNames((String) event.getOldValue(), (String) event.getNewValue());
     else if (event.getPropertyName().equals("number"))
       updateJetwayNumbers(
           (String) event.getOldValue(), ((Integer) event.getNewValue()).intValue());
   } else if ((event.getSource() instanceof RunwayModel)
       && event.getPropertyName().equals("ilsRunway")) {
     removeILSModel((ILSModel) event.getOldValue());
     addILSModelToRunway((ILSModel) event.getOldValue(), (String) event.getNewValue());
   }
 }
Example #13
0
          @Override
          public void propertyChange(PropertyChangeEvent evt) {
            int index = futures.indexOf(evt.getSource());

            // sanity check
            if (index >= 0 && index < size()) {
              FormattedFuture future = (FormattedFuture) evt.getSource();

              updates.beginEvent(true);
              updates.elementUpdated(index, future, future);
              updates.commitEvent();
            }
          }
 /* (non-Javadoc)
  * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
  */
 @Override
 public void propertyChange(PropertyChangeEvent evt) {
   if (evt.getSource() instanceof Parametre) {
     Parametre param = (Parametre) evt.getSource();
     if (evt.getPropertyName().equals("date")) { // $NON-NLS-1$
       setDateConcours(param.getDateDebutConcours());
     } else if (evt.getPropertyName().equals("intituleConcours")) { // $NON-NLS-1$
       setIntituleConcours(param.getIntituleConcours());
     } else if (evt.getPropertyName().equals("saveName")) { // $NON-NLS-1$
       setFilenameConcours(param.getSaveName());
     }
   }
 }
 private void propertyChanged(PropertyChangeEvent pce) {
   if (pce.getSource().equals(VisicutModel.getInstance())) {
     if (VisicutModel.PROP_SELECTEDPART.equals(pce.getPropertyName())) {
       updateComboBoxContent();
       updateUi();
     } else if (VisicutModel.PROP_PLF_PART_UPDATED.equals(pce.getPropertyName())
         && pce.getNewValue().equals(VisicutModel.getInstance().getSelectedPart())) {
       updateUi();
     }
   } else if (pce.getSource().equals(MappingManager.getInstance())
       || pce.getSource().equals(ProfileManager.getInstance())) {
     updateComboBoxContent();
   }
 }
Example #16
0
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
      String propName = evt.getPropertyName();
      // We already have watchAdded & watchRemoved. Ignore PROP_WATCHES:
      // We care only about the current call stack frame change and watch expression change here...
      if (!(JPDADebugger.PROP_STATE.equals(propName)
          || Watch.PROP_EXPRESSION.equals(propName)
          || Watch.PROP_ENABLED.equals(propName)
          || JPDADebugger.PROP_CURRENT_CALL_STACK_FRAME.equals(propName))) return;
      final WatchesModel m = getModel();
      if (m == null) return;
      if (JPDADebugger.PROP_STATE.equals(propName)
          && m.debugger.getState() == JPDADebugger.STATE_DISCONNECTED) {

        destroy();
        return;
      }
      if (m.debugger.getState() == JPDADebugger.STATE_RUNNING
          || JPDADebugger.PROP_CURRENT_CALL_STACK_FRAME.equals(propName)
              && m.debugger.getCurrentCallStackFrame() == null) {

        return;
      }

      if (evt.getSource() instanceof Watch) {
        Object node;
        synchronized (m.watchToValue) {
          node = m.watchToValue.get(evt.getSource());
        }
        if (node != null) {
          m.fireTableValueChangedChanged(node, null);
          return;
        }
      }

      if (task == null) {
        task =
            m.debugger
                .getRequestProcessor()
                .create(
                    new Runnable() {
                      public void run() {
                        if (verbose) System.out.println("WM do task " + task);
                        m.fireTreeChanged();
                      }
                    });
        if (verbose) System.out.println("WM  create task " + task);
      }
      task.schedule(100);
    }
Example #17
0
    @Override
    public boolean matches(Object argument) {
      PropertyChangeEvent actual = (PropertyChangeEvent) argument;
      if (m_expected == actual) return true;

      if (m_expected == null) {
        return actual == null;
      }

      return (m_expected.getSource() == actual.getSource()
          && m_expected.getPropertyName().equals(actual.getPropertyName())
          && nullSafeEquals(m_expected.getOldValue(), actual.getOldValue())
          && nullSafeEquals(m_expected.getNewValue(), actual.getNewValue()));
    }
 /*
  * @see java.beans.PropertyChangeListener#propertyChange(
  *         java.beans.PropertyChangeEvent)
  */
 public void propertyChange(PropertyChangeEvent evt) {
   if (evt.getSource() instanceof Action) {
     Action a = (Action) evt.getSource();
     if (!blockEvents && evt.getPropertyName().equals("popped")) {
       blockEvents = true;
       /* Switch the value back off, so that we will
        * get notified again next time.
        */
       a.putValue("popped", Boolean.valueOf(false));
       blockEvents = false;
       Configuration.setString(key, (String) a.getValue(Action.NAME));
     }
   }
 }
Example #19
0
 public void propertyChange(PropertyChangeEvent ev) {
   if (ev != null && ev.getSource() instanceof SoundButton) {
     SoundButton src = (SoundButton) ev.getSource();
     javax.swing.JLabel destLb = null;
     for (int i = 0; i < buttons.length; i++) {
       if (src == buttons[i]) {
         EventSoundsElement evse = evs.createElement(i);
         evse.setFileName(src.getSoundName());
         updateDisplayFor(i);
         break;
       }
     }
   }
 }
  /**
   * Process property change events from our associated Context.
   *
   * @param event The property change event that has occurred
   */
  public void propertyChange(PropertyChangeEvent event) {

    // Validate the source of this event
    if (!(event.getSource() instanceof Context)) return;
    Context context = (Context) event.getSource();

    // Process a relevant property change
    if (event.getPropertyName().equals("sessionTimeout")) {
      try {
        setMaxInactiveInterval(((Integer) event.getNewValue()).intValue() * 60);
      } catch (NumberFormatException e) {
        log(sm.getString("standardManager.sessionTimeout", event.getNewValue().toString()));
      }
    }
  }
 public void propertyChange(PropertyChangeEvent e) {
   if (log.isDebugEnabled()) {
     log.debug(
         "Property change ({}) old: ({}) new: ({})",
         e.getPropertyName(),
         e.getOldValue(),
         e.getNewValue());
   }
   if (e.getSource().equals(_route)) {
     updateRoute();
   }
   if (e.getSource().equals(_rl)) {
     updateRouteLocation(NONE);
   }
 }
 public void propertyChange(PropertyChangeEvent evento) {
   if (evento.getSource().getClass() == Ronda.class)
     if (enUltimaRonda) vista.getBtnMostrar().setText("Finalizar");
     else vista.getBtnMostrar().setText("Próxima ronda");
   else if (evento.getSource().getClass() == Tanque.class) {
     int indice = torneo.getTanques().indexOf(evento.getSource());
     if (evento.getPropertyName().equals("vida")) {
       actualizarDatosTanque(indice, 5, evento.getNewValue().toString());
       if (evento.getNewValue().equals(0)) desactivarTanque(indice);
     } else if (evento.getPropertyName().equals("energia"))
       actualizarDatosTanque(indice, 6, evento.getNewValue().toString());
     else if (evento.getPropertyName().equals("puntuacion"))
       actualizarDatosTanque(indice, 7, evento.getNewValue().toString());
   } else if (evento.getSource().getClass() == Torneo.class) enUltimaRonda = true;
 }
 public void propertyChange(PropertyChangeEvent pce) {
   Object source = pce.getSource();
   if (source == posSlider_x) {
     double posX = ((Double) pce.getNewValue()).doubleValue();
     posDisk.x = posX;
     Disk.setNode3D(ShapeNodeDisk);
     Disk.setPosition(posDisk);
     PlaceBNVectors();
   } else if (source == posSlider_y) {
     double posY = ((Double) pce.getNewValue()).doubleValue();
     posDisk.y = posY;
     Disk.setNode3D(ShapeNodeDisk);
     Disk.setPosition(posDisk);
     PlaceBNVectors();
   } else if (source == angDisk) {
     angleDisk = ((Double) pce.getNewValue()).doubleValue();
     double angDisk_rad = angleDisk * Math.PI / 180.;
     double compx = Math.cos(angDisk_rad);
     double compy = Math.sin(angDisk_rad);
     Disk.setNode3D(ShapeNodeDisk);
     Disk.setDirection(new Vector3d(compx, compy, 0.));
     flux_plot.setNormalDisk(new Vector3d(compx, compy, 0.));
     PlaceBNVectors();
   } else if (source == radDisk) {
     radiusDisk = ((Double) pce.getNewValue()).doubleValue();
     ShapeNodeDisk.setGeometry(Cylinder.makeGeometry(32, radiusDisk, heightDisk));
     Disk.setNode3D(ShapeNodeDisk);
     arrowScale = arrowScaleInitial * radiusDisk / radiusDiskInitial;
     flux_plot.setRadiusDisk(radiusDisk);
     PlaceBNVectors();
   } else {
     super.propertyChange(pce);
   }
 }
 /**
  * This method gets called when a bound property is changed on the associated JTextComponent. This
  * is a hook which UI implementations may change to reflect how the UI displays bound properties
  * of JTextComponent subclasses. This is implemented to rebuild the ActionMap based upon an
  * EditorKit change.
  *
  * @param evt the property change event
  */
 @Override
 protected void propertyChange(PropertyChangeEvent evt) {
   if (SeaGlassLookAndFeel.shouldUpdateStyle(evt)) {
     updateStyle((JTextComponent) evt.getSource());
   }
   super.propertyChange(evt);
 }
 public void propertyChange(PropertyChangeEvent event) {
   AbstractEntityModel<?> sourceModel = null;
   sourceModel = (AbstractEntityModel<?>) event.getSource();
   sourceModel.setDirty(true);
   tablePanel.setDirty(true);
   list.elementChanged(sourceModel);
 }
 /**
  * Listener method.
  *
  * @param event The property change event.
  */
 @Override
 public void propertyChange(PropertyChangeEvent event) {
   if (CreateDatabaseWorker.COMPLETE.equals(event.getPropertyName())) {
     CreateDatabaseWorker worker = (CreateDatabaseWorker) event.getSource();
     try {
       Boolean databasesCreated = worker.get();
       if (databasesCreated) {
         JOptionPane.showMessageDialog(
             CreateDatabaseDialog.this,
             Messages.getMessage("database.created.message"),
             Messages.getMessage("database.created.title"),
             JOptionPane.INFORMATION_MESSAGE);
       } else {
         showExceptionDialog(
             worker.getCreationException(),
             "database.create.fail.title",
             "database.create.fail.message");
       }
     } catch (CancellationException e) {
       // Do nothing - the user knows they cancelled it.
     } catch (ExecutionException e) {
       logger.warn("ExecutionException getting result from create database worker:", e);
     } catch (InterruptedException e) {
       // Just leave.
     }
   }
 }
  public void propertyChange(PropertyChangeEvent e) {
    // System.out.println(e.getPropertyName());
    if (e.getSource() == wdfKW.getDisplay()
        && e.getNewValue() instanceof Date
        && e.getPropertyName().equals("date")) {
      wbuZeitenAbschliessen.setEnabled(false);
      Date d = (Date) e.getNewValue();

      Timestamp[] tVonBis = Helper.getTimestampVonBisEinerKW(new Timestamp(d.getTime()));

      wdfKW.setDate(d);
      //

      Calendar c = Calendar.getInstance();
      c.setTimeInMillis(wdfKW.getDate().getTime());
      try {
        wlaKW.setText(
            "KW: "
                + c.get(Calendar.WEEK_OF_YEAR)
                + "/"
                + Helper.berechneJahrDerKW(c)
                + " ("
                + Helper.formatDatum(tVonBis[0], LPMain.getTheClient().getLocUi())
                + "-"
                + Helper.formatDatum(tVonBis[1], LPMain.getTheClient().getLocUi())
                + ")");
      } catch (Throwable e1) {

        e1.printStackTrace();
      }
    }
  }
Example #28
0
 @Override
 public void propertyChange(PropertyChangeEvent evt) {
   if (evt.getSource() != myTabs) return;
   //    Integer limit = UIUtil.getClientProperty(myTabs, JBTabsImpl.SIDE_TABS_SIZE_LIMIT_KEY);
   //    if (limit == null) limit = JBTabsImpl.DEFAULT_MAX_TAB_WIDTH;
   //    setSideTabsLimit(limit);
 }
 public void propertyChange(PropertyChangeEvent evt) {
   if (!evt.getNewValue().equals(Stateful.STATE_AVAILABLE)) {
     ((Application) evt.getSource()).removePropertyChangeListener(Stateful.PROPERTY_STATE, this);
     client.disconnectImpl(false);
     availabilityListener = null;
   }
 }
 @Override
 public void propertyChange(PropertyChangeEvent evt) {
   int index = model.getDataProviders().indexOf(evt.getSource());
   if (index != -1) {
     viewer.getTree().getColumn(index + 1).setText((String) evt.getNewValue());
   }
 }