From: lehtonen Date: Mon, 21 Jun 2010 11:35:05 +0000 (+0000) Subject: Added computeTitle to SysdynPropertyPage. X-Git-Tag: simantics-1.2.0~202 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=82a0221fa87fa8ea1ed03d95597829d5fda34196;p=simantics%2Fsysdyn.git Added computeTitle to SysdynPropertyPage. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16257 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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); + } + }