Mercurial > projects > dwt-addons
comparison dwtx/jface/operation/ModalContext.d @ 56:ef6c06252a87
fix anon classes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 13 Apr 2008 16:37:43 +0200 |
parents | ea8ff534f622 |
children | 84ce9636d109 |
comparison
equal
deleted
inserted
replaced
55:6d1acb32839d | 56:ef6c06252a87 |
---|---|
103 * requests for cancelation | 103 * requests for cancelation |
104 * @param display the display to be used to read and dispatch events | 104 * @param display the display to be used to read and dispatch events |
105 */ | 105 */ |
106 private this(IRunnableWithProgress operation, | 106 private this(IRunnableWithProgress operation, |
107 IProgressMonitor monitor, Display display) { | 107 IProgressMonitor monitor, Display display) { |
108 super(/+"ModalContext"+/); //$NON-NLS-1$ | 108 super(&run2); //$NON-NLS-1$ |
109 Assert.isTrue(monitor !is null && display !is null); | 109 Assert.isTrue(monitor !is null && display !is null); |
110 runnable = operation; | 110 runnable = operation; |
111 progressMonitor = new AccumulatingProgressMonitor(monitor, display); | 111 progressMonitor = new AccumulatingProgressMonitor(monitor, display); |
112 this.display = display; | 112 this.display = display; |
113 this.callingThread = Thread.getThis(); | 113 this.callingThread = Thread.getThis(); |
114 } | 114 } |
115 | 115 |
116 /* (non-Javadoc) | 116 /* (non-Javadoc) |
117 * Method declared on Thread. | 117 * Method declared on Thread. |
118 */ | 118 */ |
119 public /+override+/ void run() { | 119 public /+override+/ void run2() { |
120 try { | 120 try { |
121 if (runnable !is null) { | 121 if (runnable !is null) { |
122 runnable.run(progressMonitor); | 122 runnable.run(progressMonitor); |
123 } | 123 } |
124 /+ | 124 /+ |