示例#1
0
 /**
  * Gets the particle inspector.
  *
  * @return the inspector
  */
 public FunctionTool getInspector() {
   if (trackerPanel == null) return null;
   if (inspector == null) {
     inspector = trackerPanel.getModelBuilder();
     inspector.addPanel(getName(), functionPanel);
     inspector.addPropertyChangeListener(this);
     if (trackerPanel.getTFrame() != null) {
       trackerPanel.getTFrame().addPropertyChangeListener("tab", this); // $NON-NLS-1$
     }
     if (getInitEditor().getValues()[0] == 0) {
       refreshInitialTime();
       getInitEditor().getTable().clearSelection();
     }
   }
   return inspector;
 }