/** * Returns the current context -- determines the value if necessary. * * @return current context * @see #HEADLESS_CONTEXT * @see #UI_CONTEXT * @deprecated Replaced by (@link * org.eclipse.wst.common.core.util.UIContextDetermination.getCurrentContext()) */ public static int getCurrentContext() { return org.eclipse.wst.common.core.util.UIContextDetermination.getCurrentContext(); }
/** * Returns an instance of a given class based on the UI or Headless context. * * @param key * @return new class instance for the given key. * @throws IllegalArgumentException If the key is invalid (e.g. no extension is found for the key) * @deprecated Replaced by (@link * org.eclipse.wst.common.core.util.UIContextDetermination.createInstance()) */ public static Object createInstance(String key) { return org.eclipse.wst.common.core.util.UIContextDetermination.createInstance(key); }