return new IHyperlink[]{new MacroHyperlink(instance, macroLibrary.getFile(), -1, -1)};
}
else {
List<MacroDirective> macroDefinitions = instance.getItemSet().getMacroDefinitions();
for (Iterator<MacroDirective> i=macroDefinitions.iterator(); i.hasNext(); ) {
MacroDirective macroDefinition = i.next();
if (macroDefinition.getName().equals(instance.getName())) {
return new IHyperlink[]{new MacroHyperlink(
instance, editor.getFile(),
macroDefinition.getOffset(), macroDefinition.getLength())};
}
}
}
}
return null;