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