TDI-22588 : enhance some functions to load the jobs faster. (more for big jobs)

git-svn-id: http://talendforge.org/svn/tos/trunk@89756 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
nrousseau
2012-08-28 09:27:26 +00:00
parent 25445c8e9d
commit a502e716d0
2 changed files with 63 additions and 35 deletions

View File

@@ -77,7 +77,7 @@ public class ModuleNeeded {
public ModuleNeeded(String context, String moduleName, String informationMsg, boolean required) {
super();
this.context = context;
this.moduleName = moduleName;
setModuleName(moduleName);
this.informationMsg = informationMsg;
this.required = required;
}
@@ -86,7 +86,7 @@ public class ModuleNeeded {
String requiredIf) {
super();
this.context = context;
this.moduleName = moduleName;
setModuleName(moduleName);
this.informationMsg = informationMsg;
this.required = required;
this.installURL = installURL;
@@ -172,15 +172,16 @@ public class ModuleNeeded {
}
public String getModuleName() {
if (moduleName != null) {
return moduleName.replaceAll(QUOTATION_MARK, "").replaceAll(SINGLE_QUOTE, //$NON-NLS-1$
""); //$NON-NLS-1$
}
return this.moduleName;
}
public void setModuleName(String moduleName) {
this.moduleName = moduleName;
if (moduleName != null) {
this.moduleName = moduleName.replaceAll(QUOTATION_MARK, "").replaceAll(SINGLE_QUOTE, //$NON-NLS-1$
""); //$NON-NLS-1$
} else {
this.moduleName = moduleName;
}
}
public boolean isRequired() {