]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Added computeTitle to SysdynPropertyPage.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 21 Jun 2010 11:35:05 +0000 (11:35 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 21 Jun 2010 11:35:05 +0000 (11:35 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16257 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/SysdynPropertyPage.java

index 7e042f2e6a584e8b2fea9d9bf1fbbbaf1c0d0959..9f3e56f9efa69925b1f150d5071535f14507649e 100644 (file)
@@ -2,14 +2,22 @@ package org.simantics.sysdyn.ui.properties;
 \r
 import java.util.Set;\r
 \r
+import org.eclipse.jface.viewers.ISelection;\r
 import org.eclipse.ui.IWorkbenchPartSite;\r
 import org.simantics.browsing.ui.swt.StandardPropertyPage;\r
+import org.simantics.db.ReadGraph;\r
+import org.simantics.db.exception.DatabaseException;\r
+import org.simantics.modeling.ModelingUtils;\r
 \r
 public class SysdynPropertyPage extends StandardPropertyPage {\r
-    \r
-    \r
+\r
     public SysdynPropertyPage(IWorkbenchPartSite site, Set<String> set) {\r
         super(site, set);\r
     }\r
 \r
+    @Override\r
+    protected String computeTitle(ReadGraph graph, ISelection selection) throws DatabaseException {\r
+        return ModelingUtils.computeTitle(graph, selection, MAX_SELECTION_LENGTH_TO_SHOW, true);\r
+    }\r
+\r
 }\r