Author: adietish
Date: 2011-07-11 05:59:40 -0400 (Mon, 11 Jul 2011)
New Revision: 32799
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/PollThreadUtils.java
Log:
[JBIDE-9215] returned thread that was created
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/PollThreadUtils.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/PollThreadUtils.java 2011-07-11
09:55:26 UTC (rev 32798)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/PollThreadUtils.java 2011-07-11
09:59:40 UTC (rev 32799)
@@ -118,11 +118,12 @@
* @param expectedState the state to wait for
* @param pollThread the poll thread to stop
* @param behaviour the server behavior to use.
+ * @return
* @return the new poll thread
*/
- public static void pollServer(final boolean expectedState, PollThread pollThread,
DelegatingServerBehavior behaviour) {
+ public static PollThread pollServer(final boolean expectedState, PollThread pollThread,
DelegatingServerBehavior behaviour) {
IServerStatePoller poller = PollThreadUtils.getPoller(expectedState,
behaviour.getServer());
- pollServer(expectedState, poller, pollThread, behaviour);
+ return pollServer(expectedState, poller, pollThread, behaviour);
}
/**
Show replies by date