if ( group == fWorkspacePlugins ) fNumWorkspaceChecked = checked ? fWorkspaceModels.length : 0;
if ( group == fWorkspacePlugins[0] ) { fNumWorkspaceBIRTChecked = checked ? fWorkspaceBIRTModels.length : 0;  } if ( group == fWorkspacePlugins[1] ) { fNumWorkspaceJavaChecked = checked ? fWorkspaceJavaModels.length : 0; } if ( group instanceof IProject ) { try { if ( ( (IProject) group ).hasNature( REPORTPROJECTKID ) ) { fNumWorkspaceBIRTChecked += checked ? 1 : -1; } else if ( ( (IProject) group ).hasNature( JavaCore.NATURE_ID ) ) { fNumWorkspaceJavaChecked += checked ? 1 : -1; } } catch ( CoreException e ) { e.printStackTrace( ); }  fNumWorkspaceChecked = fNumWorkspaceBIRTChecked + fNumWorkspaceJavaChecked;  } adjustGroupState( );
	private void handleGroupStateChanged( Object group, boolean checked )	{		fPluginTreeViewer.setSubtreeChecked( group, checked );		fPluginTreeViewer.setGrayed( group, false );		if ( group == fWorkspacePlugins )			fNumWorkspaceChecked = checked ? fWorkspaceModels.length : 0;	}