Changeset 105 for java/main/src/main/java/com/framsticks/gui/Browser.java
- Timestamp:
- 09/10/13 21:11:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/gui/Browser.java
r102 r105 4 4 import com.framsticks.communication.queries.NeedFile; 5 5 import com.framsticks.communication.queries.NeedFileAcceptor; 6 import com.framsticks.core.*;7 6 import com.framsticks.gui.console.Console; 8 7 import com.framsticks.gui.console.DirectConsole; … … 16 15 import com.framsticks.parsers.FileSource; 17 16 import com.framsticks.remote.RemoteTree; 17 import com.framsticks.structure.Path; 18 import com.framsticks.structure.Tree; 19 import com.framsticks.util.ExceptionHandler; 18 20 import com.framsticks.util.FramsticksException; 19 21 import com.framsticks.util.dispatching.AbstractJoinable; 20 22 import com.framsticks.util.dispatching.Dispatcher; 21 23 import com.framsticks.util.dispatching.Dispatching; 22 import com.framsticks.util.dispatching.ExceptionResultHandler; 23 import com.framsticks.util.dispatching.Future; 24 import com.framsticks.util.dispatching.FutureHandler; 24 25 import com.framsticks.util.dispatching.Joinable; 25 26 import com.framsticks.util.dispatching.JoinableCollection; … … 54 55 */ 55 56 @FramsClassAnnotation 56 public class Browser extends AbstractJoinable implements Dispatcher<Browser>, JoinableParent, Exception ResultHandler {57 public class Browser extends AbstractJoinable implements Dispatcher<Browser>, JoinableParent, ExceptionHandler { 57 58 58 59 private static final Logger log = LogManager.getLogger(Browser.class); … … 213 214 file = new File("", new FileSource(filename)); 214 215 } catch (IOException e) { 215 needFile.getFuture().handle(new FramsticksException().msg("failed to open cho osedfile").arg("filename", filename).cause(e));216 needFile.getFuture().handle(new FramsticksException().msg("failed to open chosen file").arg("filename", filename).cause(e)); 216 217 } 217 218 if (file != null) { … … 239 240 } 240 241 241 public void autoResolvePath(final String path, final Future <Path> future) {242 public void autoResolvePath(final String path, final FutureHandler<Path> future) { 242 243 // final Tree i = trees.get("localhost"); 243 244 // i.dispatch(new RunAt<Tree>(future) { … … 277 278 protected void runAt() { 278 279 279 for (final Tree i: trees) {280 i.dispatch(new RunAt<Tree>(this) {280 for (final Tree tree : trees) { 281 tree.dispatch(new RunAt<Tree>(this) { 281 282 @Override 282 283 protected void runAt() { 283 final Path p = Path.to( i, "/");284 final Path p = Path.to(tree, "/"); 284 285 log.debug("adding path: {}", p); 285 286 dispatch(new RunAt<Browser>(this) {
Note: See TracChangeset
for help on using the changeset viewer.