From 82a0221fa87fa8ea1ed03d95597829d5fda34196 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Mon, 21 Jun 2010 11:35:05 +0000 Subject: [PATCH] Added computeTitle to SysdynPropertyPage. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16257 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/properties/SysdynPropertyPage.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/SysdynPropertyPage.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/SysdynPropertyPage.java index 7e042f2e..9f3e56f9 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/SysdynPropertyPage.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/SysdynPropertyPage.java @@ -2,14 +2,22 @@ package org.simantics.sysdyn.ui.properties; import java.util.Set; +import org.eclipse.jface.viewers.ISelection; import org.eclipse.ui.IWorkbenchPartSite; import org.simantics.browsing.ui.swt.StandardPropertyPage; +import org.simantics.db.ReadGraph; +import org.simantics.db.exception.DatabaseException; +import org.simantics.modeling.ModelingUtils; public class SysdynPropertyPage extends StandardPropertyPage { - - + public SysdynPropertyPage(IWorkbenchPartSite site, Set set) { super(site, set); } + @Override + protected String computeTitle(ReadGraph graph, ISelection selection) throws DatabaseException { + return ModelingUtils.computeTitle(graph, selection, MAX_SELECTION_LENGTH_TO_SHOW, true); + } + } -- 2.47.1