/** * Logs runtime status. * * @param status Runtime status. */ public void log(IStatus status) { getLog().log(status); }
public void handleException(Throwable ex) { IStatus status= new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, IStatus.OK, "Error in JDT Core during reconcile", ex); //$NON-NLS-1$ JavaPlugin.getDefault().getLog().log(status); } });
@Override public void handleException(Throwable t) { IStatus status= new Status(IStatus.ERROR, FileBuffersPlugin.PLUGIN_ID, IStatus.OK, FileBuffersMessages.TextFileBufferManager_error_documentFactoryFailed, t); FileBuffersPlugin.getDefault().getLog().log(status); } };
public static void log(IStatus status) { ILog log = Activator.getDefault().getLog(); log.log(status); } }
public static void log(IStatus status) { final Bundle bundle = Platform.getBundle(ResourcesPlugin.PI_RESOURCES); if (bundle == null) return; Platform.getLog(bundle).log(status); }
/** * * Record a status against this plugin's log. * * @param aStatus */ public static void log(IStatus aStatus) { getDefault().getLog().log(aStatus); }
/** * Log status to platform log * @param status the status to log */ public static void log(IStatus status) { getDefault().getLog().log(status); }
/** * Logs the {@link IStatus}. * * @param status * {@link IStatus} to log. */ private static void logStatus(IStatus status) { // Obtain the log ILog log = OfficeFloorPlugin.getDefault().getLog(); // Log the status log.log(status); }
@Override public void handleException(Throwable exception) { String message= JFaceTextMessages.getString(fMessageKey); IStatus status= new Status(IStatus.ERROR, PLUGIN_ID, message, exception); Platform.getLog(Platform.getBundle(PLUGIN_ID)).log(status); fLastErrorMessage= message; } }
public static void log(Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.INTERNAL_ERROR, RefactoringCoreMessages.RefactoringCorePlugin_internal_error, t); ResourcesPlugin.getPlugin().getLog().log(status); }
public static void logRemovedListener(Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.INTERNAL_ERROR, RefactoringCoreMessages.RefactoringCorePlugin_listener_removed, t); ResourcesPlugin.getPlugin().getLog().log(status); }
/** * Record an error against this plugin's log. * * @param aCode * @param aMessage * @param anException */ public static void logError(int aCode, String aMessage, Throwable anException) { getDefault().getLog().log( createErrorStatus(aCode, aMessage, anException)); }
protected IStatus run(IProgressMonitor monitor) { Object[] mesgs = messages.getListeners(); ILog pluginLog = getDefault().getLog(); for (int i = 0; i < mesgs.length; i++) { pluginLog.log((IStatus)mesgs[i]); } return Status.OK_STATUS; }
/** * Record an error against this plugin's log. * * @param aCode * @param aMessage * @param anException */ public static void logError(int aCode, String aMessage, Throwable anException) { getDefault().getLog().log( createErrorStatus(aCode, aMessage, anException)); }
@Override public void textChanging(TextChangingEvent event) { try { fMinimapTracker.replaceTextRange(event); } catch (Exception e) { IStatus status = new Status(IStatus.ERROR, TextEditorPlugin.PLUGIN_ID, IStatus.OK, "Minimap text content synchronization failed", e); //$NON-NLS-1$ TextEditorPlugin.getDefault().getLog().log(status); synchText(); } }
private void fireEndCompoundEdit() { disarm(); for (ICompoundEditListener listener : fListenerList) { try { listener.endCompoundEdit(); } catch (Exception e) { IStatus status= new Status(IStatus.ERROR, TextEditorPlugin.PLUGIN_ID, IStatus.OK, "listener notification failed", e); //$NON-NLS-1$ TextEditorPlugin.getDefault().getLog().log(status); } } }
public static void logRemovedParticipant(ParticipantDescriptor descriptor, Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.INTERNAL_ERROR, Messages.format( RefactoringCoreMessages.RefactoringCorePlugin_participant_removed, descriptor.getId()), t); ResourcesPlugin.getPlugin().getLog().log(status); }
public static void logRemovedParticipant(ParticipantDescriptor descriptor, Throwable t) { IStatus status= new Status( IStatus.ERROR, getPluginId(), IRefactoringCoreStatusCodes.PARTICIPANT_DISABLED, Messages.format( RefactoringCoreMessages.RefactoringCorePlugin_participant_removed, descriptor.getId()), t); ResourcesPlugin.getPlugin().getLog().log(status); }
public void fail(String message) throws InvalidRegistryObjectException { String id= findId(fElement); String extensionPointId= fElement.getDeclaringExtension().getExtensionPointUniqueIdentifier(); Object[] args= { fElement.getContributor().getName(), id, extensionPointId }; String blame= MessageFormat.format(RulerColumnMessages.ExtensionPointHelper_invalid_contribution_msg, args); IStatus status= new Status(IStatus.WARNING, TextEditorPlugin.PLUGIN_ID, IStatus.OK, blame + message, null); fLog.log(status); throw new InvalidRegistryObjectException(); }
@Override public boolean encloses(IJavaElement element) { try { IResource underlyingResource = element.getUnderlyingResource(); if (underlyingResource != null && isJarFile(underlyingResource.getName())) { return false; } } catch (JavaModelException e) { JavaCore.getPlugin().getLog().log(e.getStatus()); } return this.searchScope.encloses(element); }