X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.proconf.processeditor%2Fsrc%2Forg%2Fsimantics%2Fprocesseditor%2Fdialogs%2FConfigureMonitorDialog.java;h=5122508f26f86c2bc47d4646fb0d5a5f6d732e9b;hb=9ad91ae4a059a4c7b219d2560c5b8b8ed1c5f184;hp=c778c0e8c4260d8c3a3f080494e1fbebc7864253;hpb=c58f0db363a3f2881577f84fb905e07775f65002;p=simantics%2F3d.git diff --git a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureMonitorDialog.java b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureMonitorDialog.java index c778c0e8..5122508f 100644 --- a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureMonitorDialog.java +++ b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/dialogs/ConfigureMonitorDialog.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007 VTT Technical Research Centre of Finland and others. + * Copyright (c) 2007- VTT Technical Research Centre of Finland. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -126,7 +126,7 @@ public class ConfigureMonitorDialog extends Dialog { for (Resource type : types) { IEntity t = EntityFactory.create(g, type); String key = t.getName(); - if (key.equals("")) key = "ERROR (" + type.getResourceId(g.getSession()) + ")"; + if (key.equals("")) key = "ERROR (" + type.getResourceId() + ")"; sorter.put(key, type); } @@ -198,7 +198,7 @@ public class ConfigureMonitorDialog extends Dialog { for (IEntity model : models) { String key = model.getName(); - if (key.equals("")) key = "ERROR (" + model.getResource().getResourceId(resource.getGraph().getSession()) + ")"; + if (key.equals("")) key = "ERROR (" + model.getResource().getResourceId() + ")"; sorter.put(key, new G3DModel(model)); }