ShareTarget () { if (myExisting.isSelected()) { return ShareTarget.useSelected; } if (mySameNameAsLocal.isSelected()) { return ShareTarget.useProjectName; } return ShareTarget.trunkUnderProjectName; }