private static void registerDocumentationProviders() {
ElementPresentationManager.registerDocumentationProvider(new NullableFunction<Object, String>() {
public String fun(final Object o) {
if (o instanceof Action) {
final Action action = (Action) o;
final StrutsPackage strutsPackage = action.getStrutsPackage();
final DocumentationBuilder builder = new DocumentationBuilder();
final PsiClass actionClass = action.searchActionClass();
builder.addLine("Action", action.getName().getStringValue())
.addLine("Class", actionClass != null ? actionClass.getQualifiedName() : null)
.addLine("Method", action.getMethod().getStringValue())
.addLine("Package", strutsPackage.getName().getStringValue())
.addLine("Namespace", strutsPackage.searchNamespace());
return builder.getText();
}
if (o instanceof Result) {