Author: dazarov
Date: 2008-03-12 08:47:52 -0400 (Wed, 12 Mar 2008)
New Revision: 6888
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/StrutsContextHelp.xml
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java
trunk/struts/plugins/org.jboss.tools.struts.validator.ui/src/org/jboss/tools/struts/validator/ui/ValidationCompoundEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1692
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/StrutsContextHelp.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/StrutsContextHelp.xml 2008-03-12
12:33:14 UTC (rev 6887)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/StrutsContextHelp.xml 2008-03-12
12:47:52 UTC (rev 6888)
@@ -21,10 +21,6 @@
<description>Add Struts Support Wizard</description>
<topic
href="JSFStrutsTools.html#AddingStrutsCapabilityToAnExistingWebApplication532"
label="Adding Struts Capability to an Existing Web Application"/>
</context>
- <context id="tiles_editor" title="Tiles Editor">
- <description>Tiles Editor</description>
- <topic href="JSFStrutsTools.html#GraphicalEditorForTilesFiles132"
label="Graphical Editor for Tiles Files"/>
- </context>
<context id="validation_editor" title="Validation Editor">
<description>Validation Editor</description>
<topic
href="JSFStrutsTools.html#GraphicalEditorForStrutsValidationFiles86"
label="Graphical Editor for Struts Validation Files"/>
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
12:33:14 UTC (rev 6887)
+++
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/IStrutsHelpContextIds.java 2008-03-12
12:47:52 UTC (rev 6888)
@@ -14,6 +14,8 @@
public static final String PREFIX = StrutsUIPlugin.PLUGIN_ID + '.';
public static final String STRUTS_CONFIG_EDITOR = PREFIX +
"struts_config_editor";
+
+ public static final String VALIDATION_EDITOR = PREFIX + "validation_editor";
}
Modified:
trunk/struts/plugins/org.jboss.tools.struts.validator.ui/src/org/jboss/tools/struts/validator/ui/ValidationCompoundEditor.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts.validator.ui/src/org/jboss/tools/struts/validator/ui/ValidationCompoundEditor.java 2008-03-12
12:33:14 UTC (rev 6887)
+++
trunk/struts/plugins/org.jboss.tools.struts.validator.ui/src/org/jboss/tools/struts/validator/ui/ValidationCompoundEditor.java 2008-03-12
12:47:52 UTC (rev 6888)
@@ -11,12 +11,15 @@
package org.jboss.tools.struts.validator.ui;
import org.eclipse.jface.viewers.ISelectionProvider;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.common.editor.AbstractSelectionProvider;
import org.jboss.tools.common.editor.ObjectMultiPageEditor;
import org.jboss.tools.common.editor.ObjectTextEditor;
import org.jboss.tools.common.editor.TreeGuiEditor;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.ui.texteditors.XMLTextEditorComponent;
+import org.jboss.tools.struts.ui.IStrutsHelpContextIds;
import org.jboss.tools.struts.validator.ui.constants.ConstantsEditor;
import org.jboss.tools.struts.validator.ui.formset.FormsetsEditor;
import org.jboss.tools.struts.validator.ui.global.ValidatorsEditor;
@@ -27,7 +30,12 @@
protected FormsetsEditor formsetsEditor;
protected ValidatorsEditor validatorsEditor;
protected ConstantsEditor constantsEditor;
-
+
+ protected Composite createPageContainer(Composite parent) {
+ Composite composite = super.createPageContainer(parent);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
IStrutsHelpContextIds.VALIDATION_EDITOR);
+ return composite;
+ }
public void dispose() {
try {
getSite().setSelectionProvider(null);