Author: dazarov
Date: 2008-03-12 12:54:42 -0400 (Wed, 12 Mar 2008)
New Revision: 6901
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/newfile/NewStrutsConfigFileWizard.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1692
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java 2008-03-12
16:12:16 UTC (rev 6900)
+++
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java 2008-03-12
16:54:42 UTC (rev 6901)
@@ -20,4 +20,6 @@
public static final String NEW_STRUTS_PROJECT = PREFIX +
"new_struts_project";
public static final String IMPORT_STRUTS_PROJECT = PREFIX +
"import_struts_project";
+
+ public static final String NEW_STRUTS_CONFIG = PREFIX + "new_struts_config";
}
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/newfile/NewStrutsConfigFileWizard.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/newfile/NewStrutsConfigFileWizard.java 2008-03-12
16:12:16 UTC (rev 6900)
+++
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/newfile/NewStrutsConfigFileWizard.java 2008-03-12
16:54:42 UTC (rev 6901)
@@ -10,7 +10,10 @@
******************************************************************************/
package org.jboss.tools.struts.ui.wizard.newfile;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.common.model.ui.wizard.newfile.*;
+import org.jboss.tools.struts.ui.IStrutsHelpContextIds;
public class NewStrutsConfigFileWizard extends NewFileWizardEx {
@@ -24,4 +27,8 @@
return new NewStrutsConfigFileContext(getVersion());
}
+ public void createPageControls(Composite parent) {
+ super.createPageControls(parent);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
IStrutsHelpContextIds.NEW_STRUTS_CONFIG);
+ }
}