if (selection instanceof IStructuredSelection) { IStructuredSelection ss= (IStructuredSelection)selection; fOpenPropertiesDialog.selectionChanged(ss); } else { fOpenPropertiesDialog.selectionChanged(selection);
if(getShowProperties()) { if (selection instanceof IStructuredSelection) { IStructuredSelection ss= (IStructuredSelection)selection; fOpenPropertiesDialog.selectionChanged(ss); } else { fOpenPropertiesDialog.selectionChanged(selection); }
	private void initialize(ISelectionProvider provider) {		fSelectionProvider= provider;		ISelection selection= provider.getSelection();		fOpenSuperImplementation.update(selection);		fOpenExternalJavadoc.update(selection);		fOpenTypeHierarchy.update(selection);        fOpenCallHierarchy.update(selection);		if (!fEditorIsOwner) {			if (selection instanceof IStructuredSelection) {				IStructuredSelection ss= (IStructuredSelection)selection;				fOpenPropertiesDialog.selectionChanged(ss);			} else {				fOpenPropertiesDialog.selectionChanged(selection);			}			provider.addSelectionChangedListener(fOpenSuperImplementation);			provider.addSelectionChangedListener(fOpenExternalJavadoc);			provider.addSelectionChangedListener(fOpenTypeHierarchy);            provider.addSelectionChangedListener(fOpenCallHierarchy);			// no need to register the open properties dialog action since it registers itself		}	}