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