if(site.getStructuredViewer() instanceof TreeViewer) fOpenAndExpand = new OpenAndExpand(workbenchSite.getSite(), (OpenAction) fOpenGroup.getOpenAction(), (TreeViewer)site.getStructuredViewer());
	public void init(ICommonActionExtensionSite site) {		ICommonViewerWorkbenchSite workbenchSite = null;		if (site.getViewSite() instanceof ICommonViewerWorkbenchSite)			workbenchSite = (ICommonViewerWorkbenchSite) site.getViewSite();		fStateModel = site.getExtensionStateModel(); 		fLayoutActionGroup = new CommonLayoutActionGroup(site				.getStructuredViewer(), fStateModel);		if (workbenchSite != null) { 			if (workbenchSite.getPart() != null					&& workbenchSite.getPart() instanceof IViewPart) {				IViewPart viewPart = (IViewPart) workbenchSite.getPart();								fOpenGroup = new OpenEditorActionGroup(viewPart);				fCCPGroup = new CCPActionGroup(viewPart);				fRefactorGroup = new RefactorActionGroup(viewPart); 				fGenerateGroup = new GenerateActionGroup(viewPart);				fSearchGroup = new JavaSearchActionGroup(viewPart);				fBuildPathGroup = new GenerateBuildPathActionGroup(viewPart);				 				if(site.getStructuredViewer() instanceof TreeViewer)					fOpenAndExpand = new OpenAndExpand(workbenchSite.getSite(), (OpenAction) fOpenGroup.getOpenAction(), (TreeViewer)site.getStructuredViewer());				fInViewPart = true;			}		}	}