public class ClickServiceEditor extends AbstractMasterDetailEditor {
protected void createMenu(IDOMElement element) {
if(element.getNodeName().equals(ClickPlugin.TAG_CLICK_APP)){
if(ClickUtils.getElement(element, ClickPlugin.TAG_FILE_UPLOAD_SERVICE)==null){
newMenu.add(new ElementAppendAction(ClickPlugin.TAG_FILE_UPLOAD_SERVICE, element, null, this));
}
if(ClickUtils.getElement(element, ClickPlugin.TAG_LOG_SERVICE)==null){
newMenu.add(new ElementAppendAction(ClickPlugin.TAG_LOG_SERVICE, element, null, this));
}
if(ClickUtils.getElement(element, ClickPlugin.TAG_TEMPLATE_SERVICE)==null){
newMenu.add(new ElementAppendAction(ClickPlugin.TAG_TEMPLATE_SERVICE, element, null, this));
}
if(ClickUtils.getElement(element, ClickPlugin.TAG_RESOURCE_SERVICE)==null){
newMenu.add(new ElementAppendAction(ClickPlugin.TAG_RESOURCE_SERVICE, element, null, this));
}
}
if(element.getNodeName().equals(ClickPlugin.TAG_FILE_UPLOAD_SERVICE) ||
element.getNodeName().equals(ClickPlugin.TAG_LOG_SERVICE) ||
element.getNodeName().equals(ClickPlugin.TAG_TEMPLATE_SERVICE) ||
element.getNodeName().equals(ClickPlugin.TAG_RESOURCE_SERVICE)){
newMenu.add(new ElementAppendAction(ClickPlugin.TAG_PROPERTY, element, null, this));
}
}