private void createPluginViewer(Composite composite) { fPluginTreeViewer = new CheckboxTreeViewer(composite, 2048); fPluginTreeViewer.setContentProvider(new PluginContentProvider()); fPluginTreeViewer.setLabelProvider(PDEPlugin.getDefault().getLabelProvider()); fPluginTreeViewer.setAutoExpandLevel(2); fPluginTreeViewer.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(final CheckStateChangedEvent event) { Object element = event.getElement(); if (element instanceof IPluginModelBase) { handleCheckStateChanged( (IPluginModelBase) element, event.getChecked()); } else { handleGroupStateChanged(element, event.getChecked());
private void createPluginViewer( Composite composite ) { fPluginTreeViewer = new CheckboxTreeViewer( composite, 2048 ); fPluginTreeViewer.setContentProvider( new PluginContentProvider( ) ); fPluginTreeViewer.setLabelProvider( PDEPlugin.getDefault( ) .getLabelProvider( ) ); fPluginTreeViewer.setAutoExpandLevel( 2 ); fPluginTreeViewer.addCheckStateListener( new ICheckStateListener( ) {  public void checkStateChanged( final CheckStateChangedEvent event ) { Object element = event.getElement( ); if ( element instanceof IPluginModelBase ) { handleCheckStateChanged( (IPluginModelBase) element, event .getChecked( ) );
    private void createPluginViewer(Composite composite)    {        fPluginTreeViewer = new CheckboxTreeViewer(composite, 2048);        fPluginTreeViewer.setContentProvider(new PluginContentProvider());        fPluginTreeViewer.setLabelProvider(PDEPlugin.getDefault().getLabelProvider());        fPluginTreeViewer.setAutoExpandLevel(2);        fPluginTreeViewer.addCheckStateListener(new ICheckStateListener() {			public void checkStateChanged(final CheckStateChangedEvent event) {				Object element = event.getElement();				if (element instanceof IPluginModelBase) {					handleCheckStateChanged(						(IPluginModelBase) element,						event.getChecked());				} else {					handleGroupStateChanged(element, event.getChecked());				}				updateLaunchConfigurationDialog();			}		});		fPluginTreeViewer.setSorter(new ListUtil.PluginSorter() {			public int category(Object obj) {				if (obj == fWorkspacePlugins)					return -1;				return 0;			}		});        fPluginTreeViewer.getTree().setLayoutData(new GridData(1808));        Image pluginsImage = PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_REQ_PLUGINS_OBJ);        fWorkspacePlugins = new NamedElement(PDEPlugin.getResourceString("AdvancedLauncherTab.workspacePlugins"), pluginsImage);    }