@Override
public void run() {
String defaultValue = "";
VersionDTO latestVersion = oldVersionSupplier.get();
if (latestVersion != null) {
VersionSequenceDTO next = latestVersion.getVersionSequence().next();
while (next != null && getVersionNode(next.getName()) != null) {
next = next.next();
}
if (next != null) {
defaultValue = next.getName();
}
}
InputDialog dialog = new InputDialog(Shells.getShell(), Messages.createVersionDialogTitle,
Messages.createVersionDialogMessage, defaultValue, null);
int result = dialog.open();