super.setErrorMessage(null);
}
IStructuredSelection selection = (IStructuredSelection)viewer.getSelection();
GuvWizardModel model = ((IGuvnorWizard)super.getWizard()).getModel();
if (selection.getFirstElement() instanceof TreeParent) {
TreeParent node = (TreeParent)selection.getFirstElement();
if (node.getNodeType() == TreeObject.Type.PACKAGE
|| node.getNodeType() == TreeObject.Type.REPOSITORY) {
viewer.expandToLevel(node, 1);
String base = node.getFullPath().endsWith("/")?node.getFullPath():node.getFullPath() + "/"; //$NON-NLS-1$ //$NON-NLS-2$
model.setTargetLocation(base);
super.getWizard().getContainer().updateButtons();
} else {
model.setTargetLocation(null);
super.getWizard().getContainer().updateButtons();