IWorkbenchPage[] pages = FindbugsPlugin.getActiveWorkbenchWindow().getPages(); if (pages.length > 0) { try { pages[0].showView("de.tobject.findbugs.view.detailsview"); IMarker marker = (IMarker) markers.get(0);  String bugType = (String) marker.getAttribute(FindBugsMarker.BUG_TYPE, ""); BugPattern pattern = I18N.instance().lookupBugPattern(bugType); if (pattern != null) { String shortDescription = pattern.getShortDescription(); String detailText = pattern.getDetailText(); DetailsView.getDetailsView().setContent( shortDescription, detailText); }  } catch (PartInitException e) { FindbugsPlugin.getDefault().logException( e, "Could not update bug details view"); } }
IMarker marker = (IMarker) markers.get(0); DetailsView.showMarker(marker);
	public void update() {		if (markers.size() > 0) {			// Obtain the current workbench page, and show the details view			IWorkbenchPage[] pages = FindbugsPlugin.getActiveWorkbenchWindow().getPages();			if (pages.length > 0) {				try {					pages[0].showView("de.tobject.findbugs.view.detailsview");					IMarker marker = (IMarker) markers.get(0);					String bugType = (String) marker.getAttribute(FindBugsMarker.BUG_TYPE, "");					BugPattern pattern = I18N.instance().lookupBugPattern(bugType);					if (pattern != null) {						String shortDescription = pattern.getShortDescription();						String detailText = pattern.getDetailText();						DetailsView.getDetailsView().setContent(							shortDescription,							detailText);					}				}				catch (PartInitException e) {					FindbugsPlugin.getDefault().logException(							e, "Could not update bug details view");				}			}		}	}