取得当前激活状态的Iproject

获得当前激活状态的Iproject/** * 适配器工具类 ** @author Ming.He **/public class AdapterUtil {public

获得当前激活状态的Iproject

/** * 适配器工具类 *  * @author Ming.He *  */public class AdapterUtil {public static Object getAdapter(Object r_Element, Class r_AdapterType) {if (r_Element == null) {return null;}if ((r_Element instanceof IAdaptable)) {return ((IAdaptable) r_Element).getAdapter(r_AdapterType);}return Platform.getAdapterManager().getAdapter(r_Element, r_AdapterType);}}