Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c68f431af925a81af346425a00359f5599ceeb59 (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
/*******************************************************************************
 * Copyright (c) 2006 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.ui.internal;

/**
 * This iterface is used to identify and call back to trim elements that can be
 * repositioned to edges other than the one that they're defined as being in by
 * default.
 * <p>
 * NOTE: This class is a part of a 'work in progress' and should not be used
 * without consulting the Platform UI group. No guarantees are made as to the
 * stability of the API (except that the javadoc will get better...;-).
 * </p>
 * 
 * @since 3.2
 * 
 */
public interface ITrimAreaChangeListener {
	/**
	 * If a control's TrimLayoutData has a listener defined then this method
	 * will be called whenever the trim changes the orientation (i.e. side) that
	 * it's on.
	 * <p>
	 * The implementation should perform any adjustments to its control
	 * necessary to support it in its 'newOrientation' (i.e. changing a ToolBar
	 * from horizontal to vertical if it's been redocked to an area on the left
	 * or right side)
	 * </p>
	 * 
	 * @param oldOrientation
	 *            The SWT side that the trim was previously on.
	 * @param newOrientation
	 *            The SWT side that the trim has been repositioned to
	 */
	public void areaChanged(int oldOrientation, int newOrientation);
}

Back to the top