blob: f2df50d14c27490cf67838992deeb42bb66f104d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*****************************************************************************
* Copyright (c) 2011, 2014 CEA LIST and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
*
* CEA LIST - Initial API and implementation
* Christian W. Damus (CEA) - bug 392301
*
*****************************************************************************/
package org.eclipse.papyrus.infra.core.sasheditor.contentprovider;
import org.eclipse.swt.graphics.Image;
/**
* This interface is the root of the hierarchy of models representing Pages.
* This represent the final element shown in the sashes window.
* It can be an Editor or a simple control.
* This interface is used by the sashes window to interact with the model describing the element to be
* shown in the TabItem.
*
* @author dumoulin
*
*/
public abstract interface IPageModel {
/**
* Get the title to be shown in the tab
*
* @return
*/
public String getTabTitle();
/**
* Get the icon to be shown in the tab
*
* @return
*/
public Image getTabIcon();
/**
* Get the raw model corresponding to this node.
* This is the object provided to {@link ITabFolderModel.getChildren()}
*
* @return
*/
public Object getRawModel();
/**
* Dispose any resources that I have allocated, such as (for example), an {@linkplain #getTabIcon() image}.
*/
public void dispose();
}
|