Browse Source

Follow through with the deprecations

Change-Id: I0e391bd7997f1bed8214dc4decad2616925e51bf
Reviewed-on: http://gerrit.dmdirc.com/1147
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
tags/0.6.4
Chris Smith 14 years ago
parent
commit
9a1986e00e
1 changed files with 35 additions and 5 deletions
  1. 35
    5
      src/com/dmdirc/addons/ui_swing/SwingController.java

+ 35
- 5
src/com/dmdirc/addons/ui_swing/SwingController.java View File

@@ -194,8 +194,14 @@ public final class SwingController extends Plugin implements Serializable,
194 194
         return statusBar;
195 195
     }
196 196
 
197
-    /** {@inheritDoc} */
197
+    /**
198
+     * {@inheritDoc}
199
+     *
200
+     * @deprecated Controllers should listen for window events using a
201
+     * {@link FrameListener} and create windows as needed.
202
+     */
198 203
     @Override
204
+    @Deprecated
199 205
     public ChannelWindow getChannel(final Channel channel) {
200 206
         return UIUtilities.invokeAndWait(new ReturnableThread<ChannelFrame>() {
201 207
 
@@ -207,8 +213,14 @@ public final class SwingController extends Plugin implements Serializable,
207 213
         });
208 214
     }
209 215
 
210
-    /** {@inheritDoc} */
216
+    /**
217
+     * {@inheritDoc}
218
+     *
219
+     * @deprecated Controllers should listen for window events using a
220
+     * {@link FrameListener} and create windows as needed.
221
+     */
211 222
     @Override
223
+    @Deprecated
212 224
     public ServerWindow getServer(final Server server) {
213 225
         return UIUtilities.invokeAndWait(new ReturnableThread<ServerFrame>() {
214 226
 
@@ -220,8 +232,14 @@ public final class SwingController extends Plugin implements Serializable,
220 232
         });
221 233
     }
222 234
 
223
-    /** {@inheritDoc} */
235
+    /**
236
+     * {@inheritDoc}
237
+     *
238
+     * @deprecated Controllers should listen for window events using a
239
+     * {@link FrameListener} and create windows as needed.
240
+     */
224 241
     @Override
242
+    @Deprecated
225 243
     public QueryWindow getQuery(final Query query) {
226 244
         return UIUtilities.invokeAndWait(new ReturnableThread<QueryFrame>() {
227 245
 
@@ -233,8 +251,14 @@ public final class SwingController extends Plugin implements Serializable,
233 251
         });
234 252
     }
235 253
 
236
-    /** {@inheritDoc} */
254
+    /**
255
+     * {@inheritDoc}
256
+     *
257
+     * @deprecated Controllers should listen for window events using a
258
+     * {@link FrameListener} and create windows as needed.
259
+     */
237 260
     @Override
261
+    @Deprecated
238 262
     public Window getWindow(final FrameContainer<?> owner) {
239 263
         return UIUtilities.invokeAndWait(new ReturnableThread<CustomFrame>() {
240 264
 
@@ -246,8 +270,14 @@ public final class SwingController extends Plugin implements Serializable,
246 270
         });
247 271
     }
248 272
 
249
-    /** {@inheritDoc} */
273
+    /**
274
+     * {@inheritDoc}
275
+     *
276
+     * @deprecated Controllers should listen for window events using a
277
+     * {@link FrameListener} and create windows as needed.
278
+     */
250 279
     @Override
280
+    @Deprecated
251 281
     public InputWindow getInputWindow(final WritableFrameContainer<?> owner) {
252 282
         LOGGER.finest("getInputWindow()");
253 283
 

Loading…
Cancel
Save