blob: 2dc1cbae78b1155266a5f9320c95f9c921b5061b (
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
|
/*******************************************************************************
* Copyright (c) 2012, 2013 THALES GLOBAL SERVICES.
* 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:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.sirius.diagram.ui.tools.internal.editor.tabbar;
import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.ui.IWorkbenchPage;
/**
* A service to retrieve the toolbar menu manager.
*
* @author fbarbin
*/
public interface IToolBarContextService {
/**
* Singleton.
*/
IToolBarContextService INSTANCE = new ToolBarContextService();
/**
* provides the current tool bar menu manager.
*
* @return the current menu manager.
*/
ToolBarManager getMenuManager();
/**
* Retrieves the current tabbar page.
*
* @return the current workbenchPage.
*/
IWorkbenchPage getPage();
/**
* dispose the service.
*/
void dispose();
/**
* provides diagram part.
*
* @return the workbench part.
*/
IDiagramWorkbenchPart getPart();
}
|