]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.selectionview/src/org/simantics/selectionview/IPropertyTab2.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.selectionview / src / org / simantics / selectionview / IPropertyTab2.java
diff --git a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/IPropertyTab2.java b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/IPropertyTab2.java
new file mode 100644 (file)
index 0000000..b2ee9e3
--- /dev/null
@@ -0,0 +1,39 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.selectionview;\r
+\r
+import java.util.function.Consumer;\r
+\r
+import org.eclipse.jface.viewers.ISelection;\r
+\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ * \r
+ * @see PropertyTabAdapter\r
+ * @see PropertyTabContributorImpl\r
+ */\r
+public interface IPropertyTab2 extends IPropertyTab {\r
+\r
+    /**\r
+     * @param updateCallback a callback that <em>can be</em> invoked by\r
+     *        getPartName if it wishes to change the part name. If the page does\r
+     *        not wish to change the part name, it does not have to invoke the\r
+     *        updateCallback. A <code>null</code> value indicates that the part\r
+     *        name should be returned to its default value. The method should\r
+     *        use the selection received by\r
+     *        {@link #setInput(org.simantics.db.management.ISessionContext, ISelection, boolean)}\r
+     *        as input for constructing the part title.\r
+     */\r
+    void updatePartName(Consumer<String> updateCallback);\r
+\r
+}
\ No newline at end of file