|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2007, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2007, 2010 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 104-109
Link Here
|
| 104 |
} |
104 |
} |
| 105 |
|
105 |
|
| 106 |
} |
106 |
} |
|
|
107 |
|
| 108 |
for (String removedValidator : getRemovedValidators()){ |
| 109 |
if (removedValidator != null) { |
| 110 |
map.remove(removedValidator); |
| 111 |
} |
| 112 |
} |
| 113 |
|
| 107 |
return map.values(); |
114 |
return map.values(); |
| 108 |
|
115 |
|
| 109 |
} |
116 |
} |
|
Lines 221-226
Link Here
|
| 221 |
} |
228 |
} |
| 222 |
|
229 |
|
| 223 |
/** |
230 |
/** |
|
|
231 |
* Answer the extension point for removing a validator. |
| 232 |
* |
| 233 |
* @return list of validator ID or null if no validator will be removed |
| 234 |
*/ |
| 235 |
private List<String> getRemovedValidators(){ |
| 236 |
IExtensionRegistry registry = Platform.getExtensionRegistry(); |
| 237 |
IExtensionPoint extensionPoint = registry.getExtensionPoint(ValidationPlugin.PLUGIN_ID, ExtensionConstants.removedValidatorExtension); |
| 238 |
List<String> val = new LinkedList<String>(); |
| 239 |
for (IExtension ext : extensionPoint.getExtensions()){ |
| 240 |
for (IConfigurationElement validator : ext.getConfigurationElements()){ |
| 241 |
val.add(validator.getAttribute(ExtensionConstants.RemovedValidator.validatorIDAttr)); |
| 242 |
} |
| 243 |
} |
| 244 |
return val; |
| 245 |
} |
| 246 |
/** |
| 224 |
* Process a message element for the validator, by creating a MessageCategory for it. |
247 |
* Process a message element for the validator, by creating a MessageCategory for it. |
| 225 |
* |
248 |
* |
| 226 |
* @param ce a MessageCategory element. |
249 |
* @param ce a MessageCategory element. |