use of org.eclipse.linuxtools.internal.valgrind.massif.charting.ChartLocationsDialog in project linuxtools by eclipse.
the class ChartTests method testChartLocationsDialog.
@Test
public void testChartLocationsDialog() throws Exception {
ILaunchConfiguration config = createConfiguration(proj.getProject());
// $NON-NLS-1$
doLaunch(config, "testChartCallback");
MassifViewPart view = (MassifViewPart) ValgrindUIPlugin.getDefault().getView().getDynamicView();
// peak
MassifSnapshot snapshot = view.getSnapshots()[7];
assertTrue(snapshot.isDetailed());
Shell parent = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
ChartLocationsDialog dialog = new ChartLocationsDialog(parent);
dialog.setInput(snapshot);
dialog.setBlockOnOpen(false);
dialog.open();
MassifHeapTreeNode element = snapshot.getRoot().getChildren()[1];
dialog.getTableViewer().setSelection(new StructuredSelection(element));
dialog.getOkButton().notifyListeners(SWT.Selection, null);
dialog.openEditorForResult();
checkFile(proj.getProject(), element);
checkLine(element);
}
Aggregations