1 package org.argosfields.util;
2
3 import org.apache.commons.lang.NullArgumentException;
4 import org.eclipse.jface.operation.IRunnableContext;
5
6 /***
7 * RunnableContextHelper.java
8 * @author Xavier Cho
9 * @version $Revision: 1.1 $ $Date: 2004/04/17 18:21:02 $
10 */
11 public final class RunnableContextHelper {
12 private static IRunnableContext context;
13
14 private RunnableContextHelper() {
15 }
16
17 public static void initialize(final IRunnableContext context) {
18 if (context == null) {
19 throw new NullArgumentException("context");
20 }
21
22 RunnableContextHelper.context = context;
23 }
24
25 /***
26 * @return Returns the context.
27 */
28 public static IRunnableContext getContext() {
29 return context;
30 }
31 }
This page was automatically generated by Maven