}); fMethodsTree.addFilter(new ViewerFilter() { public boolean select(Viewer viewer, Object parentElement, Object element) { if (element instanceof IMethod) { IMethod method = (IMethod) element; return !method.getElementName().equals("<clinit>"); } return true; }
	protected void createMethodsTreeControls(Composite container) {		Label label= new Label(container, SWT.LEFT | SWT.WRAP);		label.setFont(container.getFont());		label.setText(Messages.getString("NewTestClassWizPage2.methods_tree.label")); //$NON-NLS-1$		GridData gd = new GridData();		gd.horizontalSpan = 2;		label.setLayoutData(gd);		fMethodsTree= new ContainerCheckedTreeViewer(container, SWT.BORDER);		gd= new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);		gd.heightHint= 180;		fMethodsTree.getTree().setLayoutData(gd);		fMethodsTree.setLabelProvider(new JavaElementLabelProvider());		fMethodsTree.setAutoExpandLevel(2);					fMethodsTree.addCheckStateListener(new ICheckStateListener() {			public void checkStateChanged(CheckStateChangedEvent event) {				updateSelectedMethodsLabel();			}			});		Composite buttonContainer= new Composite(container, SWT.NONE);		gd= new GridData(GridData.FILL_VERTICAL);		buttonContainer.setLayoutData(gd);		GridLayout buttonLayout= new GridLayout();		buttonLayout.marginWidth= 0;		buttonLayout.marginHeight= 0;		buttonContainer.setLayout(buttonLayout);		fSelectAllButton= new Button(buttonContainer, SWT.PUSH);		fSelectAllButton.setText(Messages.getString("NewTestClassWizPage2.selectAll")); //$NON-NLS-1$		gd= new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING);		fSelectAllButton.setLayoutData(gd);		fSelectAllButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				fMethodsTree.setCheckedElements((Object[]) fMethodsTree.getInput());				updateSelectedMethodsLabel();			}		});		fDeselectAllButton= new Button(buttonContainer, SWT.PUSH);		fDeselectAllButton.setText(Messages.getString("NewTestClassWizPage2.deselectAll")); //$NON-NLS-1$		gd= new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING);		fDeselectAllButton.setLayoutData(gd);		fDeselectAllButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				fMethodsTree.setCheckedElements(new Object[0]);				updateSelectedMethodsLabel();			}		});		/* No of selected methods label */		fSelectedMethodsLabel= new Label(container, SWT.LEFT);		fSelectedMethodsLabel.setFont(container.getFont());		updateSelectedMethodsLabel();		gd= new GridData(GridData.FILL_HORIZONTAL);		gd.horizontalSpan= 1;		fSelectedMethodsLabel.setLayoutData(gd);				Label emptyLabel= new Label(container, SWT.LEFT);		gd= new GridData();		gd.horizontalSpan= 1;		emptyLabel.setLayoutData(gd);	}