getEditorSite().getShell().addListener(SWT.Deactivate, new Listener() {  public void handleEvent(Event event) { removeOccurrenceAnnotations(); } });  getEditorSite().getShell().addListener(SWT.Activate, new Listener() {  public void handleEvent(Event event) { updateOccurrences(); } });
getEditorSite().getShell().addShellListener(fActivationListener);
	public void createPartControl(Composite parent) {		super.createPartControl(parent);				Preferences preferences= JavaCore.getPlugin().getPluginPreferences();		preferences.addPropertyChangeListener(fPropertyChangeListener);							IInformationControlCreator informationControlCreator= new IInformationControlCreator() {			public IInformationControl createInformationControl(Shell shell) {				boolean cutDown= false;				int style= cutDown ? SWT.NONE : (SWT.V_SCROLL | SWT.H_SCROLL);				return new DefaultInformationControl(shell, SWT.RESIZE, style, new HTMLTextPresenter(cutDown));			}		};		fInformationPresenter= new InformationPresenter(informationControlCreator);		fInformationPresenter.setSizeConstraints(60, 10, true, true);				fInformationPresenter.install(getSourceViewer());				fEditorSelectionChangedListener= new EditorSelectionChangedListener();		fEditorSelectionChangedListener.install(getSelectionProvider());				if (isBrowserLikeLinks())			enableBrowserLikeLinks();		if (PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_DISABLE_OVERWRITE_MODE))			configureInsertMode(OVERWRITE, false);				getEditorSite().getShell().addListener(SWT.Deactivate, new Listener() {			/*			 * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)			 */			public void handleEvent(Event event) {				removeOccurrenceAnnotations();			}		});		getEditorSite().getShell().addListener(SWT.Activate, new Listener() {			/*			 * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)			 */			public void handleEvent(Event event) {				updateOccurrences();			}		});	}