column.setWidth(table.getSize().x-2*table.getBorderWidth());
int width= table.getSize().x- 2*table.getBorderWidth(); if (width < 0) { width= 0; } column.setWidth(width);
	public MethodsViewer(Composite parent, IWorkbenchPart part) {		super(new Table(parent, SWT.MULTI));				fProblemItemMapper= new ProblemItemMapper();				final Table table= getTable();		final TableColumn column= new TableColumn(table, SWT.NULL | SWT.MULTI | SWT.FULL_SELECTION);		table.addControlListener(new ControlAdapter() {			public void controlResized(ControlEvent e) {				column.setWidth(table.getSize().x-2*table.getBorderWidth());			}		});		JavaElementLabelProvider lprovider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);		lprovider.setErrorTickManager(new MarkerErrorTickProvider());		MethodsContentProvider contentProvider= new MethodsContentProvider();		setLabelProvider(lprovider);		setContentProvider(contentProvider);						fOpen= new OpenSourceReferenceAction(this);				addDoubleClickListener(new IDoubleClickListener() {			public void doubleClick(DoubleClickEvent event) {				fOpen.run();			}		});						fFilter= new MethodsViewerFilter();				// fields		String title= TypeHierarchyMessages.getString("MethodsViewer.hide_fields.label"); //$NON-NLS-1$		MethodsViewerFilterAction hideFields= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_FIELDS, false);		hideFields.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.description")); //$NON-NLS-1$		hideFields.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.tooltip.checked")); //$NON-NLS-1$		hideFields.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_fields.tooltip.unchecked")); //$NON-NLS-1$		JavaPluginImages.setImageDescriptors(hideFields, "lcl16", "fields_co.gif"); //$NON-NLS-2$ //$NON-NLS-1$				// static		title= TypeHierarchyMessages.getString("MethodsViewer.hide_static.label"); //$NON-NLS-1$		MethodsViewerFilterAction hideStatic= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_STATIC, false);		hideStatic.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_static.description")); //$NON-NLS-1$		hideStatic.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_static.tooltip.checked")); //$NON-NLS-1$		hideStatic.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_static.tooltip.unchecked")); //$NON-NLS-1$		JavaPluginImages.setImageDescriptors(hideStatic, "lcl16", "static_co.gif"); //$NON-NLS-2$ //$NON-NLS-1$				// non-public		title= TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.label"); //$NON-NLS-1$		MethodsViewerFilterAction hideNonPublic= new MethodsViewerFilterAction(this, title, MethodsViewerFilter.FILTER_NONPUBLIC, false);		hideNonPublic.setDescription(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.description")); //$NON-NLS-1$		hideNonPublic.setToolTipChecked(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.tooltip.checked")); //$NON-NLS-1$		hideNonPublic.setToolTipUnchecked(TypeHierarchyMessages.getString("MethodsViewer.hide_nonpublic.tooltip.unchecked")); //$NON-NLS-1$		JavaPluginImages.setImageDescriptors(hideNonPublic, "lcl16", "public_co.gif"); //$NON-NLS-2$ //$NON-NLS-1$				// order corresponds to order in toolbar		fFilterActions= new MethodsViewerFilterAction[] { hideFields, hideStatic, hideNonPublic };						addFilter(fFilter);				fShowInheritedMembersAction= new ShowInheritedMembersAction(this, false);		showInheritedMethods(false);				fStandardGroups= new ContextMenuGroup[] {			new JavaSearchGroup(), new GenerateGroup()		};				setSorter(new MethodsViewerSorter());				}