-package org.simantics.selectionview;\r
-\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class TabChangeEvent {\r
-\r
- private final IPropertyTab oldTab;\r
- private final String oldTabLabel;\r
- private final IPropertyTab newTab;\r
- private final String newTabLabel;\r
-\r
- /**\r
- * @param oldTab\r
- * @param oldTabLabel\r
- * @param newTab\r
- * @param newTabLabel\r
- */\r
- public TabChangeEvent(IPropertyTab oldTab, String oldTabLabel, IPropertyTab newTab, String newTabLabel) {\r
- this.oldTab = oldTab;\r
- this.oldTabLabel = oldTabLabel;\r
- this.newTab = newTab;\r
- this.newTabLabel = newTabLabel;\r
- }\r
-\r
- /**\r
- * @return <code>null</code> if no tab is currently selected or no tabs\r
- * exist\r
- */\r
- public IPropertyTab getNewTab() {\r
- return newTab;\r
- }\r
-\r
- /**\r
- * @return <code>null</code> if no tab is currently selected or no tabs\r
- * exist\r
- */\r
- public String getNewTabLabel() {\r
- return newTabLabel;\r
- }\r
-\r
- /**\r
- * @return <code>null</code> if no tab was previously selected\r
- */\r
- public IPropertyTab getOldTab() {\r
- return oldTab;\r
- }\r
-\r
- /**\r
- * @return <code>null</code> if no tab was previously selected\r
- */\r
- public String getOldTabLabel() {\r
- return oldTabLabel;\r
- }\r
-\r
- @Override\r
- public String toString() {\r
- return getClass().getSimpleName() + "(" + oldTabLabel + " - " + oldTab + " => " + newTabLabel + " - " + newTab + ")";\r
- }\r
-\r
-}\r
+package org.simantics.selectionview;
+
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class TabChangeEvent {
+
+ private final IPropertyTab oldTab;
+ private final String oldTabLabel;
+ private final IPropertyTab newTab;
+ private final String newTabLabel;
+
+ /**
+ * @param oldTab
+ * @param oldTabLabel
+ * @param newTab
+ * @param newTabLabel
+ */
+ public TabChangeEvent(IPropertyTab oldTab, String oldTabLabel, IPropertyTab newTab, String newTabLabel) {
+ this.oldTab = oldTab;
+ this.oldTabLabel = oldTabLabel;
+ this.newTab = newTab;
+ this.newTabLabel = newTabLabel;
+ }
+
+ /**
+ * @return <code>null</code> if no tab is currently selected or no tabs
+ * exist
+ */
+ public IPropertyTab getNewTab() {
+ return newTab;
+ }
+
+ /**
+ * @return <code>null</code> if no tab is currently selected or no tabs
+ * exist
+ */
+ public String getNewTabLabel() {
+ return newTabLabel;
+ }
+
+ /**
+ * @return <code>null</code> if no tab was previously selected
+ */
+ public IPropertyTab getOldTab() {
+ return oldTab;
+ }
+
+ /**
+ * @return <code>null</code> if no tab was previously selected
+ */
+ public String getOldTabLabel() {
+ return oldTabLabel;
+ }
+
+ @Override
+ public String toString() {
+ return getClass().getSimpleName() + "(" + oldTabLabel + " - " + oldTab + " => " + newTabLabel + " - " + newTab + ")";
+ }
+
+}