public ISelectionExtension[] getSelectionExtensions() {
IRutaLanguageExtension[] extensions = getExtensions();
List result = new ArrayList();
for (int i = 0; i < extensions.length; i++) {
ISelectionExtension visitorExtension = extensions[i].createSelectionExtension();
if (visitorExtension != null) {
result.add(visitorExtension);
}
}
return (ISelectionExtension[]) result.toArray(new ISelectionExtension[result.size()]);