if (open != Window.OK) {
return;
}
Object[] result = dialog.getResult();
final FastStringBuffer buf = new FastStringBuffer();
if (result != null && result.length > 0) {
for (Object o : result) {
ASTEntry entry = (ASTEntry) o;
if (entry.node instanceof ClassDef) {
if (buf.length() > 0) {
buf.append(',');
}
buf.append(NodeUtils.getFullRepresentationString(entry.node));
} else if (entry.node instanceof FunctionDef && entry.parent != null
&& entry.parent.node instanceof ClassDef) {
if (buf.length() > 0) {
buf.append(',');
}
buf.append(NodeUtils.getFullRepresentationString(entry.parent.node));
buf.append('.');
buf.append(NodeUtils.getFullRepresentationString(entry.node));
}
}
}
final String arguments;
if (buf.length() > 0) {
arguments = buf.toString();
} else {
arguments = "";
}
AbstractLaunchShortcut shortcut = new AbstractLaunchShortcut() {