1 /*******************************************************************************
\r
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
\r
3 * in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.selectionview;
\r
14 import java.util.function.Consumer;
\r
16 import org.eclipse.jface.viewers.ISelection;
\r
20 * @author Tuukka Lehtonen
\r
22 * @see PropertyTabAdapter
\r
23 * @see PropertyTabContributorImpl
\r
25 public interface IPropertyTab2 extends IPropertyTab {
\r
28 * @param updateCallback a callback that <em>can be</em> invoked by
\r
29 * getPartName if it wishes to change the part name. If the page does
\r
30 * not wish to change the part name, it does not have to invoke the
\r
31 * updateCallback. A <code>null</code> value indicates that the part
\r
32 * name should be returned to its default value. The method should
\r
33 * use the selection received by
\r
34 * {@link #setInput(org.simantics.db.management.ISessionContext, ISelection, boolean)}
\r
35 * as input for constructing the part title.
\r
37 void updatePartName(Consumer<String> updateCallback);
\r