}
}
protected void textModified() {
TreeItem[] selections = _treeViewer.getTree().getSelection();
updateStatus(new Status(Status.OK, WGADesignerPlugin.PLUGIN_ID, ""));
if (selections.length>0 && selections != null ) {
Object selection = selections[0].getData();
if (selection instanceof IContainer) {
IContainer selectedContainer = (IContainer) selection;
if (WGADesignStructureHelper.isDesignFolder(selectedContainer)) {
String target = "designs";
if (_combo.getText().equals("design")) {
target = "designs";
}
if (_combo.getText().equals("plugin")) {
target = "plugins";
}
IFolder folder = _selectedProject.getFolder(target);
if (folder.getFolder(_linkNameText.getText()).exists()) {
updateStatus(new Status(Status.ERROR, WGADesignerPlugin.PLUGIN_ID, _combo.getText() + " already exists."));
}
} else {
updateStatus(new Status(Status.ERROR, WGADesignerPlugin.PLUGIN_ID, "Please select a Design or Plugin"));
}
}
}