[102191] Fix of ArtifactEditOperationDataModelProvider validation should validate only for components
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/ArtifactEditOperationDataModelProvider.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/ArtifactEditOperationDataModelProvider.java
index d6630aa..2086c3f 100644
--- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/ArtifactEditOperationDataModelProvider.java
+++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/ArtifactEditOperationDataModelProvider.java
@@ -46,17 +46,6 @@
}
- public boolean propertySet(String propertyName, Object propertyValue) {
- boolean status = super.propertySet(propertyName, propertyValue);
-// if(COMPONENT_NAME.equals(propertyName)){
-// WorkbenchComponent module = getWorkbenchModule();
-// IProject proj = getProjectForGivenComponent(module);
-// if(proj != null)
-// setProperty(PROJECT_NAME, proj.getName());
-// }
- return status;
- }
-
public Object getDefaultProperty(String propertyName) {
if (propertyName.equals(PROMPT_ON_SAVE))
return Boolean.FALSE;
@@ -94,20 +83,11 @@
IStatus result = super.validate(propertyName);
if (result != null && !result.isOK())
return result;
- if (propertyName.equals(PROJECT_NAME))
- return validateProjectName();
else if (propertyName.equals(COMPONENT_NAME))
return validateModuleName();
return result;
}
- protected IStatus validateProjectName() {
- String projectName = getStringProperty(PROJECT_NAME);
- if (projectName == null || projectName.length()==0)
- return WTPCommonPlugin.createErrorStatus(WTPCommonPlugin.getResourceString(WTPCommonMessages.PROJECT_NAME_EMPTY));
- return WTPCommonPlugin.OK_STATUS;
- }
-
protected IStatus validateModuleName() {
String moduleName = getStringProperty(COMPONENT_NAME);
if (moduleName==null || moduleName.length()==0)