return new Runnable() {
@Override
public void run() {
- SimanticsUI.getSession().asyncRequest(new WriteRequest() {
+ Simantics.getSession().asyncRequest(new WriteRequest() {
@Override
public void perform(WriteGraph graph) throws DatabaseException {
graph.markUndoPoint();
Layer0 l0 = Layer0.getInstance(graph);
Resource library = graph.newResource();
- String name = NameUtils.findFreshName(graph, "Library", parent, l0.ConsistsOf);
+ String name = NameUtils.findFreshName(graph, Messages.NewLibrary_Library, parent, l0.ConsistsOf);
graph.claim(library, l0.InstanceOf, null, l0.Library);
graph.addLiteral(library, l0.HasName, l0.NameOf, l0.String, name, Bindings.STRING);
graph.claim(library, l0.PartOf, parent);
- Layer0Utils.addCommentMetadata(graph, "Created new Library named " + name + ", resource " + library);
+ Layer0Utils.addCommentMetadata(graph, "Created new Library named " + name + ", resource " + library); //$NON-NLS-1$ //$NON-NLS-2$
return library;
}