use of com.sldeditor.common.vendoroption.VersionData in project sldeditor by robward-scisys.
the class PrefData method clone.
/**
* Clone.
*
* @return the pref data
*/
/*
* (non-Javadoc)
*
* @see java.lang.Object#clone()
*/
@Override
public PrefData clone() {
PrefData copy = new PrefData();
copy.uiLayoutClass = this.uiLayoutClass;
copy.useAntiAlias = this.useAntiAlias;
copy.backgroundColour = new Color(this.backgroundColour.getRGB());
copy.saveLastFolderView = this.saveLastFolderView;
copy.lastFolderViewed = this.lastFolderViewed;
copy.lastViewedKey = this.lastViewedKey;
copy.checkAppVersionOnStartUp = this.checkAppVersionOnStartUp;
if (this.vendorOptionList != null) {
copy.vendorOptionList = new ArrayList<VersionData>();
for (VersionData versionData : vendorOptionList) {
copy.vendorOptionList.add(versionData.clone());
}
}
return copy;
}
Aggregations