public void setInput(WebAppDebugModel newModel) { if (model != null) { model.removeWebAppDebugModelListener(this); } this.model = newModel; setSelection(new StructuredSelection(WebAppDebugModel.getInstance())); if (model != null) { model.addWebAppDebugModelListener(this); } }