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