Bug 6356 Outliner has to delete actions
Product version: smoke test for integration build 20011127 - load compilation unit into Java editor - open context menu in outliner observe: there are two delete actions
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
fErrorTickUpdater.setAnnotationModel(null);
						fErrorTickUpdater= null;
					}					
				}
				
				/**
				 * @see IContentProvider#inputChanged(Viewer, Object, Object)
				 */
				public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
					boolean isCU= (newInput instanceof ICompilationUnit);
									
					if (isCU && fListener == null) {
						fListener= new ElementChangedListener();
						JavaCore.addElementChangedListener(fListener);
						fErrorTickUpdater= new JavaOutlineErrorTickUpdater(fOutlineViewer);
						fErrorTickUpdater.setAnnotationModel(fEditor.getDocumentProvider().getAnnotationModel(fEditor.getEditorInput()));
					} else if (isCU && fErrorTickUpdater != null) {
						fErrorTickUpdater.setAnnotationModel(fEditor.getDocumentProvider().getAnnotationModel(fEditor.getEditorInput()));
					} else if (!isCU && fListener != null) {
						JavaCore.removeElementChangedListener(fListener);
						fListener= null;
						
						fErrorTickUpdater.setAnnotationModel(null);
						fErrorTickUpdater= null;
					}
				}
			};
			
			
			class JavaOutlineViewer extends TreeViewer {