public void partInputChanged(IWorkbenchPartReference ref) { IWorkbenchPart part= ref.getPart(false); if (part instanceof IEditorPart) editorActivated((IEditorPart) part); };
	public TypeHierarchyViewPart() {		fSelectedType= null;		fInputElement= null;				boolean isReconciled= PreferenceConstants.UPDATE_WHILE_EDITING.equals(PreferenceConstants.getPreferenceStore().getString(PreferenceConstants.UPDATE_JAVA_VIEWS));		fHierarchyLifeCycle= new TypeHierarchyLifeCycle();		fHierarchyLifeCycle.setReconciled(isReconciled);		fTypeHierarchyLifeCycleListener= new ITypeHierarchyLifeCycleListener() {			public void typeHierarchyChanged(TypeHierarchyLifeCycle typeHierarchy, IType[] changedTypes) {				doTypeHierarchyChanged(typeHierarchy, changedTypes);			}		};		fHierarchyLifeCycle.addChangedListener(fTypeHierarchyLifeCycleListener);				fPropertyChangeListener= new IPropertyChangeListener() {			public void propertyChange(PropertyChangeEvent event) {				doPropertyChange(event);			}		};		PreferenceConstants.getPreferenceStore().addPropertyChangeListener(fPropertyChangeListener);		fIsEnableMemberFilter= false;				fInputHistory= new ArrayList();		fAllViewers= null;						fViewActions= new ToggleViewAction[] {			new ToggleViewAction(this, VIEW_ID_TYPE),			new ToggleViewAction(this, VIEW_ID_SUPER),			new ToggleViewAction(this, VIEW_ID_SUB)		};				fDialogSettings= JavaPlugin.getDefault().getDialogSettings();				fHistoryDropDownAction= new HistoryDropDownAction(this);		fHistoryDropDownAction.setEnabled(false);				fToggleOrientationActions= new ToggleOrientationAction[] {			new ToggleOrientationAction(this, VIEW_ORIENTATION_VERTICAL),			new ToggleOrientationAction(this, VIEW_ORIENTATION_HORIZONTAL),			new ToggleOrientationAction(this, VIEW_ORIENTATION_SINGLE)		};					fEnableMemberFilterAction= new EnableMemberFilterAction(this, false);		fShowQualifiedTypeNamesAction= new ShowQualifiedTypeNamesAction(this, false);				fFocusOnTypeAction= new FocusOnTypeAction(this);				fPaneLabelProvider= new JavaUILabelProvider();				fAddStubAction= new AddMethodStubAction();		fFocusOnSelectionAction= new FocusOnSelectionAction(this);				fPartListener= new IPartListener2() {			public void partVisible(IWorkbenchPartReference ref) {				IWorkbenchPart part= ref.getPart(false);				if (part == TypeHierarchyViewPart.this) {					visibilityChanged(true);				}			}			public void partHidden(IWorkbenchPartReference ref) {				IWorkbenchPart part= ref.getPart(false);				if (part == TypeHierarchyViewPart.this) {					visibilityChanged(false);				}			}			public void partActivated(IWorkbenchPartReference ref) {				IWorkbenchPart part= ref.getPart(false);				if (part instanceof IEditorPart)					editorActivated((IEditorPart) part);			}			public void partBroughtToTop(IWorkbenchPartReference ref) {}			public void partClosed(IWorkbenchPartReference ref) {}			public void partDeactivated(IWorkbenchPartReference ref) {}			public void partOpened(IWorkbenchPartReference ref) {}		};				fSelectionChangedListener= new ISelectionChangedListener() {			public void selectionChanged(SelectionChangedEvent event) {				doSelectionChanged(event);			}		};			}