Mercurial > projects > dwt-addons
comparison dwtx/core/commands/Command.d @ 39:644f1334b451
fix anon classes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 08 Apr 2008 22:05:42 +0200 |
parents | 6518c18a01f7 |
children | ea8ff534f622 |
comparison
equal
deleted
inserted
replaced
38:c884a1ab6db3 | 39:644f1334b451 |
---|---|
535 } | 535 } |
536 | 536 |
537 Object[] listeners = getListeners(); | 537 Object[] listeners = getListeners(); |
538 for (int i = 0; i < listeners.length; i++) { | 538 for (int i = 0; i < listeners.length; i++) { |
539 ICommandListener listener = cast(ICommandListener) listeners[i]; | 539 ICommandListener listener = cast(ICommandListener) listeners[i]; |
540 SafeRunner.run(new class() ISafeRunnable { | 540 SafeRunner.run(new class(listener) ISafeRunnable { |
541 ICommandListener listener_; | 541 ICommandListener listener_; |
542 this(){ this.listener_ = listener; } | 542 this(ICommandListener a){ this.listener_ = a; } |
543 public void handleException(Exception exception) { | 543 public void handleException(Exception exception) { |
544 } | 544 } |
545 | 545 |
546 public void run() { | 546 public void run() { |
547 listener_.commandChanged(commandEvent); | 547 listener_.commandChanged(commandEvent); |