Author: dazarov
Date: 2008-03-12 08:33:14 -0400 (Wed, 12 Mar 2008)
New Revision: 6887
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/TilesContextHelp.xml
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/ITilesHelpContextIds.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/plugin.xml
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesCompoundEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1692
Added: trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/TilesContextHelp.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/TilesContextHelp.xml
(rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/TilesContextHelp.xml 2008-03-12
12:33:14 UTC (rev 6887)
@@ -0,0 +1,6 @@
+<contexts>
+ <context id="tiles_editor" title="Tiles Editor">
+ <description>Tiles Editor</description>
+ <topic href="JSFStrutsTools.html#GraphicalEditorForTilesFiles132"
label="Graphical Editor for Tiles Files"/>
+ </context>
+</contexts>
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/plugin.xml 2008-03-12 11:40:28 UTC (rev
6886)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.doc.user/plugin.xml 2008-03-12 12:33:14 UTC (rev
6887)
@@ -20,5 +20,9 @@
file="JSFContextHelp.xml"
plugin="org.jboss.tools.jsf.ui">
</contexts>
+ <contexts
+ file="TilesContextHelp.xml"
+ plugin="org.jboss.tools.jst.web.tiles.ui">
+ </contexts>
</extension>
</plugin>
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/ITilesHelpContextIds.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/ITilesHelpContextIds.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/ITilesHelpContextIds.java 2008-03-12
12:33:14 UTC (rev 6887)
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.web.tiles.ui;
+
+public interface ITilesHelpContextIds {
+ public static final String PREFIX = TilesUIPlugin.PLUGIN_ID + '.';
+
+ public static final String TILES_EDITOR = PREFIX + "tiles_editor";
+
+
+}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesCompoundEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesCompoundEditor.java 2008-03-12
11:40:28 UTC (rev 6886)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.tiles.ui/src/org/jboss/tools/jst/web/tiles/ui/editor/TilesCompoundEditor.java 2008-03-12
12:33:14 UTC (rev 6887)
@@ -10,18 +10,19 @@
******************************************************************************/
package org.jboss.tools.jst.web.tiles.ui.editor;
+import org.eclipse.gef.ui.actions.ActionRegistry;
+import org.eclipse.jface.viewers.ISelectionProvider;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
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.model.plugin.ModelPlugin;
+import org.jboss.tools.common.gef.outline.xpl.DiagramContentOutlinePage;
import org.jboss.tools.common.model.ui.texteditors.XMLTextEditorComponent;
-import org.eclipse.gef.ui.actions.ActionRegistry;
-import org.eclipse.jface.viewers.ISelectionProvider;
-import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
-
-import org.jboss.tools.common.gef.outline.xpl.DiagramContentOutlinePage;
import org.jboss.tools.jst.web.messages.xpl.WebUIMessages;
import org.jboss.tools.jst.web.tiles.model.TilesConfigFilteredTreeConstraint;
+import org.jboss.tools.jst.web.tiles.ui.ITilesHelpContextIds;
import org.jboss.tools.jst.web.tiles.ui.TilesUIPlugin;
public class TilesCompoundEditor extends ObjectMultiPageEditor {
@@ -31,7 +32,13 @@
public TilesCompoundEditor() {
outline.addFilter(constraint);
}
-
+
+ protected Composite createPageContainer(Composite parent) {
+ Composite composite = super.createPageContainer(parent);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
ITilesHelpContextIds.TILES_EDITOR);
+ return composite;
+ }
+
protected void doCreatePages() {
if (isAppropriateNature()) {
treeFormPage = createTreeFormPage();