Пример #1
0
 /**
  * Sets the input to this editor.
  *
  * <p><b>Note:</b> Clients must fire the {@link IEditorPart#PROP_INPUT } property change within
  * their implementation of <code>setInput()</code>.
  *
  * <p>
  *
  * @param input the editor input
  */
 @Override
 public void setInput(IEditorInput input) {
   super.setInput(input);
   if (treeViewer != null) {
     PlanEditorModel model = PlanEditorModelRegistry.getPlanEditorModel(input);
     treeViewer.setInput(model.getEPlan());
     treeViewer.setEditorModel(model);
   }
   firePropertyChange(IWorkbenchPartConstants.PROP_INPUT);
 }