public IAdapterManager getAdapterManager() { IAdapterManager adapterManager = (IAdapterManager) getService(); // Then, if the service isn't there, try to get from Platform class via // PlatformHelper class if (adapterManager == null) adapterManager = PlatformHelper.getPlatformAdapterManager(); return adapterManager; }
public final boolean equals(Object obj) { if (obj == null || !(obj instanceof Proxy)) return false; Proxy p = (Proxy) obj; if (p.getType() == getType()) { if (getAddress() == null) { return (p.getAddress() == null); } return getAddress().equals(p.getAddress()); } return false; }
public void run() throws Exception { try { runWithRegistry(getExtensionRegistry()); } catch (NoClassDefFoundError e) { runWithoutRegistry(); } }
public synchronized IAdapterManager getAdapterManager() { if (this.context == null) return null; // First, try to get the adapter manager via if (adapterManagerTracker == null) { adapterManagerTracker = new AdapterManagerTracker(this.context); adapterManagerTracker.open(); } return adapterManagerTracker.getAdapterManager(); }
public final int hashCode() { if (getAddress() == null) return getType().hashCode(); return getType().hashCode() + getAddress().hashCode(); }
/** * Traces the specified message from the specified plug-in. * * @param pluginId * The plug-in from which to trace. * @param message * The message to be traced. * */ public static void trace(String pluginId, String message) { if (shouldTrace(pluginId)) trace(message); }
public String toString() { if (getType() == Type.DIRECT) return "DIRECT"; //$NON-NLS-1$ return getType() + " @ " + getAddress(); //$NON-NLS-1$ }
public void handleException(Throwable exception) { logWarning(exception); } }
public void log(int level, String message) { log(null, level, message, null); }
/** * Retrieves a Boolean value indicating whether tracing is enabled for the * specified plug-in. * * @return Whether tracing is enabled for the plug-in. * @param pluginId * The symbolic plugin id for which to determine trace * enablement. * */ protected static boolean shouldTrace(String pluginId) { return shouldTrace0(pluginId + "/debug"); //$NON-NLS-1$ }
public void log(@SuppressWarnings("rawtypes") ServiceReference sr, int level, String message, Throwable exception) { doLog(sr, level, message, exception); }
public IContainerManager getContainerManager() { return (IContainerManager) getService(); } }
public IContainerFactory getContainerFactory() { return (IContainerFactory) getService(); } }
public synchronized IAdapterManager getAdapterManager() { if (this.context == null) return null; // First, try to get the adapter manager via if (adapterManagerTracker == null) { adapterManagerTracker = new AdapterManagerTracker(this.context); adapterManagerTracker.open(); } return adapterManagerTracker.getAdapterManager(); }
/** * Traces the specified message from the specified plug-in. * * @param pluginId * The plug-in from which to trace. * @param message * The message to be traced. * */ public static void trace(String pluginId, String message) { if (shouldTrace(pluginId)) trace(message); }
public void run() throws Exception { try { runWithRegistry(getExtensionRegistry()); } catch (NoClassDefFoundError e) { runWithoutRegistry(); } }
public void handleException(Throwable exception) { logWarning(exception); } }
public void log(int level, String message) { log(null, level, message, null); }
/** * Retrieves a Boolean value indicating whether tracing is enabled for the * specified plug-in. * * @return Whether tracing is enabled for the plug-in. * @param pluginId * The symbolic plugin id for which to determine trace * enablement. * */ protected static boolean shouldTrace(String pluginId) { return shouldTrace0(pluginId + "/debug"); //$NON-NLS-1$ }
public IAdapterManager getAdapterManager() { if (context == null) return null; // First, try to get the adapter manager via if (adapterManagerTracker == null) { adapterManagerTracker = new AdapterManagerTracker(this.context); adapterManagerTracker.open(); } return adapterManagerTracker.getAdapterManager(); }