int size = fWorkspaceBIRTModels.length; deselected = ReportLauncherUtils.parseDeselectedOpenFileNames( config ); for ( int i = 0; i < size; i++ ) { IProject project = fWorkspaceBIRTModels[i]; List list = getReportDesignFileFromProject( project ); int len = list.size( ); int ori = len; for ( int j = 0; j < len; j++ ) { IResource resource = (IResource) list.get( j ); String path = resource.getFullPath( ).toString( ); if ( !deselected.contains( path ) ) { if ( fPluginTreeViewer.setChecked( resource, false ) ) { ori--; } }  } if ( ori > 0 ) { fPluginTreeViewer.setChecked( project, true ); } fPluginTreeViewer.setGrayed( project, ori > 0 && ori < len ); }
	private void initWorkspacePluginsState( ILaunchConfiguration config )			throws CoreException	{		fNumWorkspaceBIRTChecked = fWorkspaceBIRTModels.length;		fNumWorkspaceJavaChecked = fWorkspaceJavaModels.length;		for ( int i = 0; i < fWorkspacePlugins.length; i++ )		{			fPluginTreeViewer.setSubtreeChecked( fWorkspacePlugins[i], true );		}		TreeSet deselected = ReportLauncherUtils.parseDeselectedWSIds( config );		for ( int i = 0; i < fWorkspaceBIRTModels.length; i++ )		{			if ( !deselected.contains( fWorkspaceBIRTModels[i].getName( ) ) )			{				if ( fPluginTreeViewer.setChecked( fWorkspaceBIRTModels[i],						false ) )				{					fNumWorkspaceBIRTChecked--;				}			}		}		for ( int i = 0; i < fWorkspaceJavaModels.length; i++ )		{			if ( !deselected.contains( fWorkspaceJavaModels[i].getName( ) ) )			{				if ( fPluginTreeViewer.setChecked( fWorkspaceJavaModels[i],						false ) )				{					fNumWorkspaceJavaChecked--;				}			}		}		fNumWorkspaceChecked = fNumWorkspaceBIRTChecked				+ fNumWorkspaceJavaChecked;		int[] checked = new int[]{				fNumWorkspaceBIRTChecked, fNumWorkspaceJavaChecked		};		int[] length = new int[]{				fWorkspaceBIRTModels.length, fWorkspaceJavaModels.length		};		for ( int i = 0; i < fWorkspacePlugins.length; i++ )		{			if ( checked[i] == 0 )			{				fPluginTreeViewer.setChecked( fWorkspacePlugins[i], false );			}			fPluginTreeViewer.setGrayed( fWorkspacePlugins[i], checked[i] > 0					&& checked[i] < length[i] );		}	}