From 869f477d92e028304a5c850f153a09bc5ca85512 Mon Sep 17 00:00:00 2001 From: Gregory Shrago Date: Mon, 30 Nov 2009 19:02:55 +0300 Subject: [PATCH] help ids fixed --- .../org/intellij/plugins/intelliLang/AdvancedSettingsUI.java | 2 +- .../inject/java/JavaLanguageInjectionSupport.java | 2 +- .../intelliLang/inject/xml/XmlLanguageInjectionSupport.java | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/AdvancedSettingsUI.java b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/AdvancedSettingsUI.java index 79775066c886..4f817124c435 100644 --- a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/AdvancedSettingsUI.java +++ b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/AdvancedSettingsUI.java @@ -169,7 +169,7 @@ public class AdvancedSettingsUI implements Configurable { } public String getHelpTopic() { - return null; + return "reference.settings.injection.advanced"; } private static class BrowseClassListener implements ActionListener { diff --git a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/java/JavaLanguageInjectionSupport.java b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/java/JavaLanguageInjectionSupport.java index 721cccf19198..2c42f8e638a6 100644 --- a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/java/JavaLanguageInjectionSupport.java +++ b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/java/JavaLanguageInjectionSupport.java @@ -150,7 +150,7 @@ public class JavaLanguageInjectionSupport extends AbstractLanguageInjectionSuppo final AbstractInjectionPanel panel = new MethodParameterPanel(methodParameterInjection, project); panel.reset(); final DialogBuilder builder = new DialogBuilder(project); - builder.setHelpId("reference.settings.injection.language.injection.settings"); + builder.setHelpId("reference.settings.injection.language.injection.settings.java.parameter"); builder.addOkAction(); builder.addCancelAction(); builder.setCenterPanel(panel.getComponent()); diff --git a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java index afd2c49bccc7..21b1427277f1 100644 --- a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java +++ b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java @@ -138,17 +138,18 @@ public class XmlLanguageInjectionSupport extends AbstractLanguageInjectionSuppor @Nullable private AbstractTagInjection showInjectionUI(final Project project, final BaseInjection xmlInjection) { + final DialogBuilder builder = new DialogBuilder(project); final AbstractInjectionPanel panel; if (xmlInjection instanceof XmlTagInjection) { panel = new XmlTagPanel((XmlTagInjection)xmlInjection, project); + builder.setHelpId("reference.settings.injection.language.injection.settings.xml.tag"); } else if (xmlInjection instanceof XmlAttributeInjection) { panel = new XmlAttributePanel((XmlAttributeInjection)xmlInjection, project); + builder.setHelpId("reference.settings.injection.language.injection.settings.xml.attribute"); } else throw new AssertionError(); panel.reset(); - final DialogBuilder builder = new DialogBuilder(project); - builder.setHelpId("reference.settings.injection.language.injection.settings"); builder.addOkAction(); builder.addCancelAction(); builder.setCenterPanel(panel.getComponent());