You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2008/08/06 11:04:09 UTC
svn commit: r683183 -
/directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/SWTBotUtils.java
Author: seelmann
Date: Wed Aug 6 02:04:08 2008
New Revision: 683183
URL: http://svn.apache.org/viewvc?rev=683183&view=rev
Log:
Removed commented code, formattings
Modified:
directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/SWTBotUtils.java
Modified: directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/SWTBotUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/SWTBotUtils.java?rev=683183&r1=683182&r2=683183&view=diff
==============================================================================
--- directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/SWTBotUtils.java (original)
+++ directory/studio/trunk/test-integration-ui/src/main/java/org/apache/directory/studio/test/integration/ui/SWTBotUtils.java Wed Aug 6 02:04:08 2008
@@ -242,48 +242,15 @@
// expand entry and wait till
// - children are displayed
// - next child is visible
-
final String nextName = !pathList.isEmpty() ? pathList.get( 0 ) : null;
expandEntry( bot, entry, nextName );
-
-// final SWTBotTreeItem child = entry;
-//
-// UIThreadRunnable.asyncExec( bot.getDisplay(), new UIThreadRunnable.VoidResult()
-// {
-// public void run()
-// {
-// child.expand();
-// }
-// } );
-//
-// bot.waitUntil( new DefaultCondition()
-// {
-// public boolean test() throws Exception
-// {
-// if ( nextName != null )
-// {
-// String adjustedNodeName = nextName != null ? adjustNodeName( child, nextName ) : null;
-// SWTBotTreeItem node = child.getNode( adjustedNodeName );
-// if ( node == null )
-// {
-// return false;
-// }
-// }
-// return !child.getNodes().contains( "Fetching Entries..." );
-// }
-//
-//
-// public String getFailureMessage()
-// {
-// return "Could not find entry " + child.getText() + " -> " + nextName;
-// }
-// } );
}
}
return entry;
}
+
/**
* Expands the entry.
* Takes care that all attributes and child entries are initialized so
@@ -296,7 +263,8 @@
*
* @throws Exception the exception
*/
- public static void expandEntry( final SWTEclipseBot bot, final SWTBotTreeItem entry, final String nextName ) throws Exception
+ public static void expandEntry( final SWTEclipseBot bot, final SWTBotTreeItem entry, final String nextName )
+ throws Exception
{
UIThreadRunnable.asyncExec( bot.getDisplay(), new UIThreadRunnable.VoidResult()
{
@@ -330,6 +298,7 @@
} );
}
+
private static String adjustNodeName( SWTBotTreeItem child, String nodeName )
{
List<String> nodes = child.getNodes();