X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tmf%2Forg.eclipse.tracecompass.tmf.ui.swtbot.tests%2Fshared%2Forg%2Feclipse%2Ftracecompass%2Ftmf%2Fui%2Fswtbot%2Ftests%2Fshared%2FSWTBotUtils.java;h=dc2189419a885ef14ce8b340d1125caf97989ba2;hb=b6fddb839ef7b61c5a418a5e05091c52b3d25c67;hp=00a4b329fac795c56e764462d48fee196fd00131;hpb=1a01cbfd2acf7daf9b9deaeb1549ead48b47ed17;p=deliverable%2Ftracecompass.git diff --git a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java index 00a4b329fa..dc2189419a 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java @@ -247,7 +247,6 @@ public final class SWTBotUtils { }); } - /** * Focus on the main window * @@ -316,7 +315,8 @@ public final class SWTBotUtils { * Close a view with an id * * @param viewId - * the view id, like "org.eclipse.linuxtools.tmf.ui.views.histogram" + * the view id, like + * "org.eclipse.linuxtools.tmf.ui.views.histogram" * @param bot * the workbench bot */ @@ -364,7 +364,8 @@ public final class SWTBotUtils { printEnvironment(); // There seems to be problems on some system where the main shell is - // not in focus initially. This was seen using Xvfb and Xephyr on some occasions. + // not in focus initially. This was seen using Xvfb and Xephyr on + // some occasions. focusMainWindow(bot.shells()); Shell shell = bot.activeShell().widget; @@ -381,7 +382,8 @@ public final class SWTBotUtils { return; } - // Print some information about the environment that could affect test outcome + // Print some information about the environment that could affect test + // outcome Rectangle bounds = Display.getDefault().getBounds(); System.out.println("Display size: " + bounds.width + "x" + bounds.height); @@ -392,7 +394,8 @@ public final class SWTBotUtils { String gtkVersion = System.getProperty("org.eclipse.swt.internal.gtk.version"); if (gtkVersion != null) { System.out.println("GTK version=" + gtkVersion); - // Try to print the GTK theme information as behavior can change depending on the theme + // Try to print the GTK theme information as behavior can change + // depending on the theme String gtkTheme = System.getProperty("org.eclipse.swt.internal.gtk.theme"); System.out.println("GTK theme=" + (gtkTheme == null ? "unknown" : gtkTheme)); @@ -734,7 +737,8 @@ public final class SWTBotUtils { * @param bot * a given workbench bot * @param projectName - * the name of the project (it needs to exist or else it would time out) + * the name of the project (it needs to exist or else it would + * time out) * @return a {@link SWTBotTreeItem} of the project */ public static SWTBotTreeItem selectProject(SWTWorkbenchBot bot, String projectName) { @@ -885,7 +889,8 @@ public final class SWTBotUtils { try { bot.waitUntil(ConditionHelpers.IsTreeChildNodeAvailable(nodeName, currentNode)); } catch (TimeoutException e) { - //FIXME: Sometimes in a JFace TreeViewer, it expands to nothing. Need to find out why. + // FIXME: Sometimes in a JFace TreeViewer, it expands to + // nothing. Need to find out why. currentNode.collapse(); currentNode.expand(); bot.waitUntil(ConditionHelpers.IsTreeChildNodeAvailable(nodeName, currentNode));