Example #1
0
 /** This needs to be called if the ValManager is ever deleted. */
 public void dispose() {
   // currently nobody calls this method, because this instance is never removed, but the method is
   // here for completeness none the less.
   ValPrefManagerGlobal.getDefault().removeListener(this);
   ValPrefManagerProject.removeListener(this);
   FacetedProjectFramework.removeListener(this);
   EventManager.getManager().removeProjectChangeListener(this);
 }
Example #2
0
 private ValManager() {
   ValPrefManagerGlobal.getDefault().addListener(this);
   ValPrefManagerProject.addListener(this);
   FacetedProjectFramework.addListener(this, IFacetedProjectEvent.Type.PROJECT_MODIFIED);
   EventManager.getManager().addProjectChangeListener(this);
 }