1 | if (this.itemLabelGenerator != null) {↵ | | 1 | if (this.baseToolTipGenerator != null) {↵
|
2 | if (this.itemLabelGenerator instanceof PublicCloneable) {↵ | | 2 | if (this.baseToolTipGenerator instanceof PublicCloneable) {↵
|
3 | PublicCloneable pc↵ | | 3 | PublicCloneable pc↵
|
4 | = (PublicCloneable) this.itemLabelGenerator;↵ | | 4 | = (PublicCloneable) this.baseToolTipGenerator;↵
|
5 | clone.itemLabelGenerator↵ | | 5 | clone.baseToolTipGenerator↵
|
6 | = (CategoryItemLabelGenerator) pc.clone();↵ | | 6 | = (CategoryToolTipGenerator) pc.clone();↵
|
7 | }↵ | | 7 | }↵
|
8 | else {↵ | | 8 | else {↵
|
9 | throw new CloneNotSupportedException(↵ | | 9 | throw new CloneNotSupportedException(↵
|
10 | "ItemLabelGenerator not cloneable.");↵ | | 10 | "Base tool tip generator not cloneable.");↵
|
11 | }↵ | | 11 | }↵
|
12 | } | | 12 | }
|