protected static void clearMarkers(IFile file) { int depth = IResource.DEPTH_INFINITE; try { file.deleteMarkers(IMarker.PROBLEM, true, depth); } catch (CoreException e) { YEditLog.logException(e); YEditLog.logger.warning("Failed to delete markers:\n" + e.toString()); } }
service.exportPreferences(node, stm, null); } catch (CoreException e) { writer.println("Error reading preferences " + e.toString());//$NON-NLS-1$
@Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { // DEBUG: Utils.debug("Start Element: uri:" + uri + " local Name:" + localName + " qName:" + qName); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ try { String tag = localName.trim(); if (tag.equalsIgnoreCase(CFG)) { processConfig(attributes); return; } if (tag.equalsIgnoreCase(CFG_SITE)) { processSite(attributes); return; } if (tag.equalsIgnoreCase(CFG_FEATURE_ENTRY)) { processFeature(attributes); return; } } catch (MalformedURLException e) { throw new SAXException(NLS.bind(Messages.InstalledSiteParser_UnableToCreateURL, (new String[] { e.getMessage() })), e); } catch (CoreException e) { throw new SAXException(NLS.bind(Messages.InstalledSiteParser_ErrorParsingFile, (new String[] { e.toString() })), e); } }
public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException { RefactoringStatus result = new RefactoringStatus(); try { pm.beginTask("", 9); //$NON-NLS-1$ changeManager = createChangeManager(new SubProgressMonitor(pm, 1), result); } catch(CoreException e){ result.addFatalError(e.toString()); } finally { pm.done(); } return result; }
} catch(CoreException ex) { log.error(ex.getMessage(), ex); openDialog(ex.getMessage() + "\n" + ex.toString()); //$NON-NLS-1$
printCollection("valid types:", getValidTypeNames()); //$NON-NLS-1$ } catch (CoreException e) { JavaPlugin.logErrorMessage("Error occurred during computation of valid types: " + e.toString()); //$NON-NLS-1$
printCollection("valid types:", getValidTypeNames()); //$NON-NLS-1$ } catch (CoreException e) { JavaPlugin.logErrorMessage("Error occurred during computation of valid types: " + e.toString()); //$NON-NLS-1$
printCollection("valid types:", getValidTypeNames()); //$NON-NLS-1$ } catch (CoreException e) { JavaPlugin.logErrorMessage("Error occurred during computation of valid types: " + e.toString()); //$NON-NLS-1$
} catch(CoreException ex) { log.error(ex.getMessage(), ex); openDialog(ex.getMessage() + "\n" + ex.toString()); //$NON-NLS-1$
static IMarker addMarker(SwaggerError error, IFile target, IDocument document) { IMarker marker = null; try { marker = target.createMarker(IMarker.PROBLEM); marker.setAttribute(IMarker.SEVERITY, error.getLevel()); marker.setAttribute(IMarker.MESSAGE, error.getMessage()); marker.setAttribute(IMarker.LINE_NUMBER, error.getLine()); } catch (CoreException e) { YEditLog.logException(e); YEditLog.logger.warning("Failed to create marker for syntax error: \n" + e.toString()); } return marker; }
} catch (CoreException e) { YEditLog.logException(e); YEditLog.logger.warning("Failed to delete task markers:\n" + e.toString() );
listener.detailComputed(value, e.toString()); return;