DocumentResource DOC = DocumentResource.getInstance(graph);
currentText = graph.getPossibleRelatedValue(resource, DOC.cssDocument, Bindings.STRING);
errorHappened = false;
- return new Document(currentText != null ? currentText : "");
+ return new Document(currentText != null ? currentText : ""); //$NON-NLS-1$
}
});
} catch (DatabaseException e) {
synchronized(annotationModel.getLockObject()) {
annotationModel.removeAllAnnotations();
for(CompilationError error : errors) {
- Annotation annotation = new Annotation("org.eclipse.ui.workbench.texteditor.error", true,
+ Annotation annotation = new Annotation("org.eclipse.ui.workbench.texteditor.error", true, //$NON-NLS-1$
error.description);
int begin = Locations.beginOf(error.location);
int end = Locations.endOf(error.location);
@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
IDocument document, boolean overwrite) throws CoreException {
- TimeLogger.resetTimeAndLog("SCLModuleEditorDocumentProvider.doSaveDocument");
+ TimeLogger.resetTimeAndLog("SCLModuleEditorDocumentProvider.doSaveDocument"); //$NON-NLS-1$
currentText = document.get();
Simantics.getSession().asyncRequest(new WriteRequest() {
@Override