errorHappened = false;
return graph.getRelatedValue(text, L0.SCLValue_expression, Bindings.STRING);
}
- return "";
+ return ""; //$NON-NLS-1$
}
protected void updateAnnotations() {
@Override
public void exception(Throwable t) {
Activator.getDefault().getLog().log(
- new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Internal error in procedural user component code compilation.", t));
+ new Status(IStatus.ERROR, Activator.PLUGIN_ID, Messages.SymbolDropHandlerDocumentProvider_ActivatorInternalError, t));
}
@Override
@Override
protected void doSaveDocument(IProgressMonitor monitor, Object element,
IDocument document, boolean overwrite) throws CoreException {
- TimeLogger.resetTimeAndLog(getClass(), "doSaveDocument");
+ TimeLogger.resetTimeAndLog(getClass(), "doSaveDocument"); //$NON-NLS-1$
currentText = document.get();
Simantics.getSession().asyncRequest(new WriteRequest() {
@Override
ModelingResources MOD = ModelingResources.getInstance(graph);
Resource newValue = graph.newResource();
graph.claim(newValue, L0.InstanceOf, MOD.SCLValue);
- graph.claimLiteral(newValue, L0.HasValueType, "[WorkbenchSelectionElement] -> <WriteGraph,Proc> ()", Bindings.STRING);
+ graph.claimLiteral(newValue, L0.HasValueType, "[WorkbenchSelectionElement] -> <WriteGraph,Proc> ()", Bindings.STRING); //$NON-NLS-1$
graph.claimLiteral(newValue, L0.SCLValue_expression, currentText, Bindings.STRING);
Layer0Utils.assert_(graph, resource, DIA.symbolDropHandler, newValue);