コード例 #1
0
 /* (non-Javadoc)
  * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
  */
 public void inputChanged(Viewer v, Object oldInput, Object newInput) {
   if (newInput != null) ((IWebflowModelElement) newInput).addPropertyChangeListener(this);
   if (oldInput != null) ((IWebflowModelElement) oldInput).removePropertyChangeListener(this);
 }
コード例 #2
0
 /* (non-Javadoc)
  * @see org.eclipse.jface.viewers.IContentProvider#dispose()
  */
 public void dispose() {
   if (project != null) {
     ((IWebflowModelElement) project).removePropertyChangeListener(this);
   }
 }