X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.selectionview%2Fsrc%2Forg%2Fsimantics%2Fselectionview%2FTabChangeEvent.java;fp=bundles%2Forg.simantics.selectionview%2Fsrc%2Forg%2Fsimantics%2Fselectionview%2FTabChangeEvent.java;h=1a386247ac9c2440ba1c3d8bba3c4548f74365d4;hp=b68fec9cc5d3857e889bdcc9dd4c2013d6fcf391;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/TabChangeEvent.java b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/TabChangeEvent.java index b68fec9cc..1a386247a 100644 --- a/bundles/org.simantics.selectionview/src/org/simantics/selectionview/TabChangeEvent.java +++ b/bundles/org.simantics.selectionview/src/org/simantics/selectionview/TabChangeEvent.java @@ -1,62 +1,62 @@ -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 null if no tab is currently selected or no tabs - * exist - */ - public IPropertyTab getNewTab() { - return newTab; - } - - /** - * @return null if no tab is currently selected or no tabs - * exist - */ - public String getNewTabLabel() { - return newTabLabel; - } - - /** - * @return null if no tab was previously selected - */ - public IPropertyTab getOldTab() { - return oldTab; - } - - /** - * @return null if no tab was previously selected - */ - public String getOldTabLabel() { - return oldTabLabel; - } - - @Override - public String toString() { - return getClass().getSimpleName() + "(" + oldTabLabel + " - " + oldTab + " => " + newTabLabel + " - " + newTab + ")"; - } - -} +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 null if no tab is currently selected or no tabs + * exist + */ + public IPropertyTab getNewTab() { + return newTab; + } + + /** + * @return null if no tab is currently selected or no tabs + * exist + */ + public String getNewTabLabel() { + return newTabLabel; + } + + /** + * @return null if no tab was previously selected + */ + public IPropertyTab getOldTab() { + return oldTab; + } + + /** + * @return null if no tab was previously selected + */ + public String getOldTabLabel() { + return oldTabLabel; + } + + @Override + public String toString() { + return getClass().getSimpleName() + "(" + oldTabLabel + " - " + oldTab + " => " + newTabLabel + " - " + newTab + ")"; + } + +}