Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f806efcab694f44600fa29c7b1848ad049e42737 (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
61
62
63
64
65
66
67
68
69
/*******************************************************************************
 * Copyright (c) 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.debug.internal.ui.views.variables.details;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IWorkbenchPartSite;

/**
 * Interface for UI elements that contain detail panes.  Provides access to
 * information about the current detail pane and allows the container to be
 * informed of changes.
 *
 * @since 3.3
 * @see AvailableDetailPanesAction
 * @see DetailPaneProxy
 */
public interface IDetailPaneContainer {

	/**
	 * Returns the string ID of the detail pane currently being displayed.
	 *
	 * @return the ID of the current detail pane
	 */
	String getCurrentPaneID();

	/**
	 * Returns the selection to be displayed in the detail pane.
	 *
	 * @return the selection to be displayed in the detail pane.
	 */
	IStructuredSelection getCurrentSelection();

	/**
	 * Returns the composite that detail panes will be added to.
	 *
	 * @return the composite that detail panes will be added to
	 */
	Composite getParentComposite();

	/**
	 * Returns the workbench part site that the detail pane is in or <code>null</code>
	 * if the detail pane is not in a workbench part site.
	 *
	 * @return the workbench part site the detail pane is in or <code>null</code>
	 */
	IWorkbenchPartSite getWorkbenchPartSite();

	/**
	 * Refreshes the current detail pane with the current selection.
	 */
	void refreshDetailPaneContents();

	/**
	 * Informs the container that the type of detail pane being used has changed.
	 *
	 * @param newPaneID ID of the new detail pane
	 */
	void paneChanged(String newPaneID);

}

Back to the top