/** * Creates the Java editor text hover. * * @return the text hover */ public IJavaEditorTextHover createTextHover() { String pluginId = fElement.getContributor().getName(); boolean isHoversPlugInActivated= Platform.getBundle(pluginId).getState() == Bundle.ACTIVE; if (isHoversPlugInActivated || canActivatePlugIn()) { try { return (IJavaEditorTextHover)fElement.createExecutableExtension(CLASS_ATTRIBUTE); } catch (CoreException x) { JavaPlugin.log(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, JavaHoverMessages.JavaTextHover_createTextHover, null)); } } return null; }
/** * Creates the Java editor text hover. * * @return the text hover */ public IJavaEditorTextHover createTextHover() { String pluginId = fElement.getContributor().getName(); boolean isHoversPlugInActivated= Platform.getBundle(pluginId).getState() == Bundle.ACTIVE; if (isHoversPlugInActivated || canActivatePlugIn()) { try { return (IJavaEditorTextHover)fElement.createExecutableExtension(CLASS_ATTRIBUTE); } catch (CoreException x) { JavaPlugin.log(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, JavaHoverMessages.JavaTextHover_createTextHover, null)); } } return null; }
/** * Creates the Java editor text hover. * * @return the text hover */ public IJavaEditorTextHover createTextHover() { String pluginId = fElement.getContributor().getName(); boolean isHoversPlugInActivated= Platform.getBundle(pluginId).getState() == Bundle.ACTIVE; if (isHoversPlugInActivated || canActivatePlugIn()) { try { return (IJavaEditorTextHover)fElement.createExecutableExtension(CLASS_ATTRIBUTE); } catch (CoreException x) { JavaPlugin.log(new Status(IStatus.ERROR, JavaPlugin.getPluginId(), 0, JavaHoverMessages.JavaTextHover_createTextHover, null)); } } return null; }