1 package org.simantics.selectionview;
\r
5 * @author Tuukka Lehtonen
\r
7 public class TabChangeEvent {
\r
9 private final IPropertyTab oldTab;
\r
10 private final String oldTabLabel;
\r
11 private final IPropertyTab newTab;
\r
12 private final String newTabLabel;
\r
16 * @param oldTabLabel
\r
18 * @param newTabLabel
\r
20 public TabChangeEvent(IPropertyTab oldTab, String oldTabLabel, IPropertyTab newTab, String newTabLabel) {
\r
21 this.oldTab = oldTab;
\r
22 this.oldTabLabel = oldTabLabel;
\r
23 this.newTab = newTab;
\r
24 this.newTabLabel = newTabLabel;
\r
28 * @return <code>null</code> if no tab is currently selected or no tabs
\r
31 public IPropertyTab getNewTab() {
\r
36 * @return <code>null</code> if no tab is currently selected or no tabs
\r
39 public String getNewTabLabel() {
\r
44 * @return <code>null</code> if no tab was previously selected
\r
46 public IPropertyTab getOldTab() {
\r
51 * @return <code>null</code> if no tab was previously selected
\r
53 public String getOldTabLabel() {
\r
58 public String toString() {
\r
59 return getClass().getSimpleName() + "(" + oldTabLabel + " - " + oldTab + " => " + newTabLabel + " - " + newTab + ")";
\r