JBoss Tools SVN: r6715 - in trunk/jsf/docs/userguide/en: images/jsf_support and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-03-06 13:08:22 -0500 (Thu, 06 Mar 2008)
New Revision: 6715
Modified:
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_22.png
trunk/jsf/docs/userguide/en/images/jsf_support/jsf_support_4.png
trunk/jsf/docs/userguide/en/images/jsf_support/jsf_support_6.png
trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 retook screens + scale param for xml file
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_22.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/jsf_support/jsf_support_4.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/jsf_support/jsf_support_6.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml 2008-03-06 18:04:32 UTC (rev 6714)
+++ trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml 2008-03-06 18:08:22 UTC (rev 6715)
@@ -235,7 +235,7 @@
<imageobject>
<imagedata
fileref="images/jsf_support/jsf_support_4.png"
- />
+ scale="85"/>
</imageobject>
</mediaobject>
</figure>
@@ -715,22 +715,20 @@
<title>Adding Your Own Project Templates</title>
<para>Template is a set of files that serve as a basis to facilitate
the creation of a new project. Project templates provide
- content and structure for a project. <property>JBoss
- Developer Studio</property> has a powerful
+ content and structure for a project.</para>
+ <para><property>JBoss Developer Studio</property> has a powerful
templating capability for creating new and importing
existing Struts and JSF projects. This templating facility
has a variety of aspects to consider. But, let's
- start with the most straightforward case and consider the
- process of creating a template from your existing JSF
- project.</para>
+ start with the most straightforward case.</para>
<para>Let's say you have a project that you want to use as
the basis for a new <property>template</property>. Follow
these steps to make a template out of it:</para>
<itemizedlist>
<listitem>
- <para>In the <property>Web Projects view</property>,
- right-click the project and select <emphasis>
+ <para>In the Web Projects view, right-click the
+ project and select <emphasis>
<property>JBoss Tools JSF > Save As
Template</property>
</emphasis> as template </para>
@@ -809,9 +807,7 @@
<title>Graphical Editor and Viewing for JSF Configuration Files</title>
<para>JBDS provides a graphical editor for working with JSF configuration
- file (<emphasis>
- <property>faces-config.xml</property>
- </emphasis>). The editor has three main viewers (modes):</para>
+ file (faces-config.xml). The editor has three main viewers (modes):</para>
<itemizedlist>
<listitem>
@@ -829,9 +825,7 @@
<para>The JSF configuration editor also comes with a very useful <link
linkend="OpenOnSelection4Hyperlinknavigation">OpenOn</link>
- selection feature. Now let's dwell on all specific
- functionality which is provided for work with JSF configuration
- file.</para>
+ selection feature.</para>
<section id="Diagram9553">
@@ -999,11 +993,10 @@
<section id="ErrorReporting3324">
<title>Error Reporting</title>
- <para>When you are developing your project, <property>JBoss
- Developer Studio</property> constantly provides
- error checking. This greatly reduces your development time
- as it allows you to catch many of the errors during
- development.</para>
+ <para>When you are developing your project, JBoss Developer Studio
+ constantly provides error checking. This greatly reduces
+ your development time as it allows you to catch many of the
+ errors during development.</para>
<para>Errors will be reported by JBoss Developer Studio's
<link linkend="verif_valid"> verification</link>
facility:</para>
@@ -1237,9 +1230,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>Thus, we've discussed everything which comes to
- creating a new Managed Bean. Further we will show you how to
- add already existing Bean into a JSF configuration file.</para>
+
</section>
<section id="AddExistingJavaBeansToAJSFConfigurationFile74332">
@@ -1637,18 +1628,15 @@
</figure>
</section>
- <section>
- <title>Relevant Resources Links</title>
- <para>If you don't familiar with <ulink url="http://java.sun.com/javaee/javaserverfaces/">JSF
- technology</ulink>, we suggest that you walk through the information on the topic.</para>
- </section>
</section>
<section id="Struts_support">
<title>Struts support</title>
- <para>If you prefer develop web applications using
- <property>Struts</property> technology JBoss Developer Studio also meets your needs.</para>
+ <para>If you prefer develop web applications using <ulink
+ url="http://struts.apache.org/">
+ <property>Struts</property>
+ </ulink> technology JBoss Developer Studio also meets your needs.</para>
<para>JBDS supports the <property>Struts 1.1</property>, <property>1.2.x</property>
versions.</para>
@@ -2669,12 +2657,6 @@
</figure>
</section>
- <section>
- <title>Relevant Resources Links</title>
- <para>Find out necessary information on <ulink
- url="http://struts.apache.org/">Struts technology</ulink> if you don't know enough.</para>
- </section>
-
</section>
<section id="verif_valid">
@@ -2683,8 +2665,8 @@
<para>As you are developing your project, JBoss Developer Studio Verification
constantly provides dynamic <property>validation</property>, consistency
checking and error checking. This greatly reduces your development time as
- it allows you to catch many of the errors during development. <property>JBoss
- Developer Studio</property> provides dynamic verification for both JSF and Struts
+ it allows you to catch many of the errors during development. JBoss
+ Developer Studio provides dynamic verification for both JSF and Struts
projects.</para>
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2008-03-06 18:04:32 UTC (rev 6714)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2008-03-06 18:08:22 UTC (rev 6715)
@@ -450,7 +450,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/editors_features/editors_features_22.png"/>
+ fileref="images/editors_features/editors_features_22.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
@@ -462,7 +462,7 @@
<mediaobject>
<imageobject>
<imagedata
- fileref="images/editors_features/editors_features_23.png"/>
+ fileref="images/editors_features/editors_features_23.png" />
</imageobject>
</mediaobject>
</figure>
16 years, 3 months
JBoss Tools SVN: r6714 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-03-06 13:04:32 -0500 (Thu, 06 Mar 2008)
New Revision: 6714
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1322
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java 2008-03-06 17:42:44 UTC (rev 6713)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java 2008-03-06 18:04:32 UTC (rev 6714)
@@ -12,15 +12,22 @@
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
+import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
@@ -29,11 +36,14 @@
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.SeamCorePlugin;
+import org.jboss.tools.seam.core.project.facet.SeamRuntime;
+import org.jboss.tools.seam.core.project.facet.SeamVersion;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamGuiPlugin;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory;
+import org.jboss.tools.seam.ui.widget.editor.SeamRuntimeListFieldEditor;
import org.jboss.tools.seam.ui.wizard.IParameter;
import org.jboss.tools.seam.ui.wizard.SeamWizardFactory;
import org.jboss.tools.seam.ui.wizard.SeamWizardUtils;
@@ -49,6 +59,7 @@
private IProject project;
private IProject warProject;
private IEclipsePreferences preferences;
+ private ISeamProject warSeamProject;
/*
* (non-Javadoc)
@@ -61,6 +72,7 @@
warProject = SeamWizardUtils.getRootSeamProject(project);
if(warProject!=null) {
preferences = SeamCorePlugin.getSeamPreferences(warProject);
+ warSeamProject = SeamCorePlugin.getSeamProject(warProject, false);
}
}
@@ -72,7 +84,7 @@
IFieldEditor projectNameEditor = IFieldEditorFactory.INSTANCE.createUneditableTextEditor(IParameter.SEAM_PROJECT_NAME, SeamUIMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SEAM_PROJECT, getSeamProjectName());
addEditor(projectNameEditor);
- IFieldEditor seamRuntimeEditor = SeamWizardFactory.createSeamRuntimeSelectionFieldEditor(getSeamRuntimeName());
+ IFieldEditor seamRuntimeEditor = SeamWizardFactory.createSeamRuntimeSelectionFieldEditor(getSeamVersions(), getSeamRuntimeName());
addEditor(seamRuntimeEditor);
Control control = new GridLayoutComposite(parent);
@@ -155,6 +167,57 @@
}
}
+ private SeamVersion[] getSeamVersions() {
+// if(warSeamProject != null) {
+// SeamRuntime r = warSeamProject.getRuntime();
+// if(r != null) {
+// return new SeamVersion[]{r.getVersion()};
+// }
+// String jarLocation = getJBossSeamJarLocation();
+// if(jarLocation != null) {
+// String folder = new File(jarLocation).getParent();
+// String vs = SeamRuntimeListFieldEditor.SeamRuntimeWizardPage.getSeamVersion(folder);
+// SeamVersion v = findMatchingVersion(vs);
+// if(v != null) {
+// return new SeamVersion[]{v};
+// }
+// }
+// }
+ return SeamVersion.ALL_VERSIONS;
+ }
+
+ private SeamVersion findMatchingVersion(String vs) {
+ if(vs == null) return null;
+ if(vs.matches(SeamVersion.SEAM_1_2.toString().replace(".", "\\.") + ".*")) {
+ return SeamVersion.SEAM_1_2;
+ }
+ if(vs.matches(SeamVersion.SEAM_2_0.toString().replace(".", "\\.") + ".*")) {
+ return SeamVersion.SEAM_2_0;
+ }
+ return null;
+ }
+
+ private String getJBossSeamJarLocation() {
+ IJavaProject jp = EclipseResourceUtil.getJavaProject(project);
+ if(jp == null) return null;
+ IClasspathEntry[] es = null;
+ try {
+ es = jp.getResolvedClasspath(true);
+ } catch (JavaModelException e) {
+ //ignore
+ return null;
+ }
+ if(es == null) return null;
+ for (int i = 0; i < es.length; i++) {
+ IPath p = es[i].getPath();
+ if(p != null && p.lastSegment().equalsIgnoreCase("jboss-seam.jar")) {
+ IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);
+ if(f != null && f.exists()) return f.getLocation().toString();
+ }
+ }
+ return null;
+ }
+
public class GridLayoutComposite extends Composite {
public GridLayoutComposite(Composite parent, int style) {
16 years, 3 months
JBoss Tools SVN: r6713 - in trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui: wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-03-06 12:42:44 -0500 (Thu, 06 Mar 2008)
New Revision: 6713
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1322
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java 2008-03-06 17:31:03 UTC (rev 6712)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java 2008-03-06 17:42:44 UTC (rev 6713)
@@ -29,11 +29,13 @@
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.SeamCorePlugin;
+import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamGuiPlugin;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory;
import org.jboss.tools.seam.ui.wizard.IParameter;
+import org.jboss.tools.seam.ui.wizard.SeamWizardFactory;
import org.jboss.tools.seam.ui.wizard.SeamWizardUtils;
import org.osgi.service.prefs.BackingStoreException;
@@ -68,20 +70,23 @@
@Override
protected Control createContents(Composite parent) {
IFieldEditor projectNameEditor = IFieldEditorFactory.INSTANCE.createUneditableTextEditor(IParameter.SEAM_PROJECT_NAME, SeamUIMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SEAM_PROJECT, getSeamProjectName());
-// addEditor(projectNameEditor);
+ addEditor(projectNameEditor);
-// IFieldEditor jBossSeamHomeEditor = IFieldEditorFactory.INSTANCE
-// .createComboWithButton(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME,
-// SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_SEAM_RUNTIME, getRuntimeNames(),
-// getSeamRuntimeDefaultValue(),
-// true, new NewSeamRuntimeAction(), (IValidator)null);
+ IFieldEditor seamRuntimeEditor = SeamWizardFactory.createSeamRuntimeSelectionFieldEditor(getSeamRuntimeName());
+ addEditor(seamRuntimeEditor);
Control control = new GridLayoutComposite(parent);
-// projectNameEditor.setEnabled(false);
return control;
}
+ private String getSeamRuntimeName() {
+ if(preferences!=null) {
+ return preferences.get(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME, "");
+ }
+ return "";
+ }
+
private String getSeamProjectName() {
return warProject!=null ? warProject.getName() : project.getName();
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java 2008-03-06 17:31:03 UTC (rev 6712)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java 2008-03-06 17:42:44 UTC (rev 6713)
@@ -114,6 +114,9 @@
* @return Editor to select seam runtime
*/
public static IFieldEditor createSeamRuntimeSelectionFieldEditor(SeamVersion[] seamVersions, String defaultValue, NewSeamRuntimeAction action) {
+ if(seamVersions.length==0) {
+ seamVersions = SeamVersion.ALL_VERSIONS;
+ }
IFieldEditor jBossSeamRuntimeEditor = IFieldEditorFactory.INSTANCE
.createComboWithButton(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME,
SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_SEAM_RUNTIME, getRuntimeNames(seamVersions),
16 years, 3 months
JBoss Tools SVN: r6712 - in trunk/seam/plugins: org.jboss.tools.seam.ui and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-03-06 12:31:03 -0500 (Thu, 06 Mar 2008)
New Revision: 6712
Added:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionCreateOperation.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardCustomizationPage.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamVersion.java
trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditorFactory.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1322
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamVersion.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamVersion.java 2008-03-06 16:54:55 UTC (rev 6711)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/project/facet/SeamVersion.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -45,6 +45,8 @@
return version;
}
+ public static SeamVersion[] ALL_VERSIONS = new SeamVersion[]{SEAM_1_2, SEAM_2_0};
+
/**
* Get enumeration by string
* TODO support for compatible version? should 1.2.1 return SEAM_1_2?
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2008-03-06 16:54:55 UTC (rev 6711)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2008-03-06 17:31:03 UTC (rev 6712)
@@ -400,7 +400,7 @@
<page
name="Seam Settings"
- class="org.jboss.tools.seam.ui.preferences.SeamSettingsPreferencePage"
+ class="org.jboss.tools.seam.ui.preferences.SeamSettingsPreferencePageNew"
id="org.jboss.tools.seam.ui.propertyPages.SeamSettingsPreferencePage">
<enabledWhen>
<adapt type="org.eclipse.core.resources.IProject">
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2008-03-06 16:54:55 UTC (rev 6711)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -305,6 +305,8 @@
public static String SEAM_WIZARD_FACTORY_SEAM_PROJECT;
+ public static String SEAM_SETTINGS_PREFERENCES_PAGE_SEAM_PROJECT;
+
public static String SELECT_SEAM_PROJECT_ACTION_BROWSE;
public static String SWT_FIELD_EDITOR_FACTORY_BROWS;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2008-03-06 16:54:55 UTC (rev 6711)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -30,7 +30,6 @@
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.wizard.IWizard;
-import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
import org.eclipse.osgi.util.NLS;
@@ -68,8 +67,8 @@
import org.jboss.tools.seam.ui.widget.editor.IFieldEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory;
import org.jboss.tools.seam.ui.widget.editor.ITaggedFieldEditor;
-import org.jboss.tools.seam.ui.widget.editor.SeamRuntimeListFieldEditor.SeamRuntimeNewWizard;
import org.jboss.tools.seam.ui.wizard.SeamFormWizard;
+import org.jboss.tools.seam.ui.wizard.SeamWizardFactory;
/**
* @author eskimo
@@ -280,24 +279,11 @@
return result;
}
- public List<String> getRuntimeNames() {
- SeamRuntime[] rts = SeamRuntimeManager.getInstance().getRuntimes(/*SeamVersion.SEAM_1_2*/);
- List<String> result = new ArrayList<String>();
- for(SeamRuntime seamRuntime : rts) {
- result.add(seamRuntime.getName());
- }
- return result;
- }
-
/**
* Creates Seam Facet Wizard Page contents
*/
public void createControl(Composite parent) {
- jBossSeamHomeEditor = IFieldEditorFactory.INSTANCE
- .createComboWithButton(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME,
- SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_SEAM_RUNTIME, getRuntimeNames(),
- getSeamRuntimeDefaultValue(),
- true, new NewSeamRuntimeAction(), (IValidator)null);
+ jBossSeamHomeEditor = SeamWizardFactory.createSeamRuntimeSelectionFieldEditor(new SeamVersion[0], getSeamRuntimeDefaultValue().toString(), new NewSeamRuntimeAction());
initializeDialogUnits(parent);
@@ -699,36 +685,22 @@
}
}
- public class NewSeamRuntimeAction extends
- ButtonFieldEditor.ButtonPressedAction {
- /**
- * @param label
- */
- public NewSeamRuntimeAction() {
- super(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_ADD);
+ private class NewSeamRuntimeAction extends SeamWizardFactory.NewSeamRuntimeAction {
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.ui.wizard.SeamWizardFactory.NewSeamRuntimeAction#getRuntimeSelectionEditor()
+ */
+ @Override
+ protected IFieldEditor getRuntimeSelectionEditor() {
+ return jBossSeamHomeEditor;
}
- public void run() {
- List<SeamRuntime> added = new ArrayList<SeamRuntime>();
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.ui.wizard.SeamWizardFactory.NewSeamRuntimeAction#getSeamVersions()
+ */
+ @Override
+ protected SeamVersion[] getSeamVersions() {
String seamVersion = model.getProperty(IFacetDataModelProperties.FACET_VERSION_STR).toString();
- List<SeamVersion> versians = new ArrayList<SeamVersion>(1);
- versians.add(SeamVersion.parseFromString(seamVersion));
- Wizard wiz = new SeamRuntimeNewWizard((List<SeamRuntime>)
- new ArrayList<SeamRuntime>(Arrays.asList(SeamRuntimeManager.getInstance().getRuntimes()))
- , added, versians);
- WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wiz);
- dialog.open();
-
- if (added.size()>0) {
- SeamRuntimeManager.getInstance().addRuntime(added.get(0));
-
- List<String> runtimes = getRuntimeNames(seamVersion);
- SeamRuntime newRuntime = added.get(0);
- if(seamVersion.equals(newRuntime.getVersion().toString())) {
- getFieldEditor().setValue(added.get(0).getName());
- }
- ((ITaggedFieldEditor) ((CompositeEditor) jBossSeamHomeEditor).getEditors().get(1)).setTags(runtimes.toArray(new String[0]));
- }
+ return new SeamVersion[]{SeamVersion.parseFromString(seamVersion)};
}
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2008-03-06 16:54:55 UTC (rev 6711)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2008-03-06 17:31:03 UTC (rev 6712)
@@ -202,3 +202,4 @@
OPEN_SEAM_COMPONENT_ACTION_MESSAGE=Enter seam component name prefix or pattern (? = any character, * = any string):
OPEN_SEAM_COMPONENT_DIALOG_LOADING=Seam components loading
OPEN_SEAM_COMPONENT_DIALOG_NAME=OpenSeamComponentDialog
+SEAM_SETTINGS_PREFERENCES_PAGE_SEAM_PROJECT=Main Seam Project:
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -0,0 +1,177 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.ui.preferences;
+
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.dialogs.PropertyPage;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.seam.core.ISeamProject;
+import org.jboss.tools.seam.core.SeamCorePlugin;
+import org.jboss.tools.seam.ui.SeamGuiPlugin;
+import org.jboss.tools.seam.ui.SeamUIMessages;
+import org.jboss.tools.seam.ui.widget.editor.IFieldEditor;
+import org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory;
+import org.jboss.tools.seam.ui.wizard.IParameter;
+import org.jboss.tools.seam.ui.wizard.SeamWizardUtils;
+import org.osgi.service.prefs.BackingStoreException;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class SeamSettingsPreferencePageNew extends PropertyPage implements PropertyChangeListener {
+
+ private Map<String,IFieldEditor> editorRegistry = new HashMap<String,IFieldEditor>();
+ private List<IFieldEditor> editorOrder = new ArrayList<IFieldEditor>();
+ private IProject project;
+ private IProject warProject;
+ private IEclipsePreferences preferences;
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.dialogs.PropertyPage#setElement(org.eclipse.core.runtime.IAdaptable)
+ */
+ @Override
+ public void setElement(IAdaptable element) {
+ super.setElement(element);
+ project = (IProject) getElement().getAdapter(IProject.class);
+ warProject = SeamWizardUtils.getRootSeamProject(project);
+ if(warProject!=null) {
+ preferences = SeamCorePlugin.getSeamPreferences(warProject);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
+ */
+ @Override
+ protected Control createContents(Composite parent) {
+ IFieldEditor projectNameEditor = IFieldEditorFactory.INSTANCE.createUneditableTextEditor(IParameter.SEAM_PROJECT_NAME, SeamUIMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SEAM_PROJECT, getSeamProjectName());
+// addEditor(projectNameEditor);
+
+// IFieldEditor jBossSeamHomeEditor = IFieldEditorFactory.INSTANCE
+// .createComboWithButton(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME,
+// SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_SEAM_RUNTIME, getRuntimeNames(),
+// getSeamRuntimeDefaultValue(),
+// true, new NewSeamRuntimeAction(), (IValidator)null);
+
+ Control control = new GridLayoutComposite(parent);
+// projectNameEditor.setEnabled(false);
+
+ return control;
+ }
+
+ private String getSeamProjectName() {
+ return warProject!=null ? warProject.getName() : project.getName();
+ }
+
+ /* (non-Javadoc)
+ * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
+ */
+ public void propertyChange(PropertyChangeEvent evt) {
+ }
+
+ /**
+ *
+ * @param id
+ * @param editor
+ */
+ public void addEditor(IFieldEditor editor) {
+ editorRegistry.put(editor.getName(), editor);
+ editorOrder.add(editor);
+ editor.addPropertyChangeListener(this);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.jface.preference.PreferencePage#performOk()
+ */
+ @Override
+ public boolean performOk() {
+ if (isSeamSupported()) {
+ addSeamSupport();
+ storeSettigs();
+ } else {
+ removeSeamSupport();
+ }
+ return true;
+ }
+
+ private void storeSettigs() {
+ //TODO
+// pref.put("test", "blah-blah-blah");
+ try {
+ preferences.flush();
+ } catch (BackingStoreException e) {
+ SeamGuiPlugin.getPluginLog().logError(e);
+ }
+ }
+
+ private boolean isSeamSupported() {
+ //TODO
+ return true;
+ }
+
+ private void removeSeamSupport() {
+ try {
+ EclipseResourceUtil.removeNatureFromProject(project,
+ ISeamProject.NATURE_ID);
+ } catch (CoreException e) {
+ SeamGuiPlugin.getPluginLog().logError(e);
+ }
+ }
+
+ private void addSeamSupport() {
+ try {
+ EclipseResourceUtil.addNatureToProject(project, ISeamProject.NATURE_ID);
+ } catch (CoreException e) {
+ SeamGuiPlugin.getPluginLog().logError(e);
+ }
+ }
+
+ public class GridLayoutComposite extends Composite {
+
+ public GridLayoutComposite(Composite parent, int style) {
+ super(parent, style);
+ int columnNumber = 1;
+ for (IFieldEditor fieldEditor : editorOrder) {
+ if(fieldEditor.getNumberOfControls()>columnNumber)
+ columnNumber=fieldEditor.getNumberOfControls();
+ }
+ GridLayout gl = new GridLayout(columnNumber, false);
+ gl.verticalSpacing = 5;
+ gl.marginTop = 3;
+ gl.marginLeft = 3;
+ gl.marginRight = 3;
+ setLayout(gl);
+ for (IFieldEditor fieldEditor : editorOrder) {
+ fieldEditor.doFillIntoGrid(this);
+ }
+ }
+
+ public GridLayoutComposite(Composite parent) {
+ this(parent, SWT.NONE);
+ }
+ }
+}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditorFactory.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditorFactory.java 2008-03-06 16:54:55 UTC (rev 6711)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditorFactory.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -97,13 +97,14 @@
String defaultValue);
/**
- * @param jdbcDriverClassName
- * @param string
- * @param string2
+ *
+ * @param name
+ * @param label
+ * @param defaultValue
* @return
*/
- IFieldEditor createUneditableTextEditor(String jdbcDriverClassName,
- String string, String string2);
+ IFieldEditor createUneditableTextEditor(String name,
+ String label, String defaultValue);
/**
*
Added: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionCreateOperation.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionCreateOperation.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionCreateOperation.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -0,0 +1,76 @@
+package org.jboss.tools.seam.ui.wizard;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
+import org.jboss.tools.seam.ui.SeamUIMessages;
+import org.jboss.tools.seam.ui.widget.editor.INamedElement;
+
+/**
+ *
+ * TODO move operations to core plugin
+ */
+public class SeamActionCreateOperation extends SeamBaseOperation{
+
+ /**
+ * @param label
+ */
+ public SeamActionCreateOperation() {
+ super((SeamUIMessages.SEAM_ACTION_WIZARD_ACTION_CREATING_OPERATION));
+ }
+
+ @Override
+ public List<String[]> getFileMappings(Map<String, Object> vars) {
+ if("war".equals(vars.get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS))) //$NON-NLS-1$
+ return ACTION_WAR_MAPPING;
+ else
+ return ACTION_EAR_MAPPING;
+ }
+
+ public static final List<String[]> ACTION_WAR_MAPPING = new ArrayList<String[]>();
+
+ public static final List<String[]> ACTION_EAR_MAPPING = new ArrayList<String[]>();
+
+ static {
+ // initialize war files mapping
+ ACTION_WAR_MAPPING.add(new String[]{
+ "${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME + "}/seam-gen/src/ActionJavaBean.java", //$NON-NLS-1$ //$NON-NLS-2$
+ "${" + IParameter.SEAM_PROJECT_SRC_ACTION + "}/${" + ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_PATH + "}/${" + IParameter.SEAM_LOCAL_INTERFACE_NAME +"}.java"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ ACTION_WAR_MAPPING.add(new String[]{
+ "${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME + "}/seam-gen/test/ActionTest.java", //$NON-NLS-1$ //$NON-NLS-2$
+ "${" + IParameter.SEAM_TEST_PROJECT_LOCATION_PATH + "}/test-src/${" + ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_PATH + "}/${"+ IParameter.SEAM_LOCAL_INTERFACE_NAME +"}Test.java"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ ACTION_WAR_MAPPING.add(new String[]{
+ "${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME + "}/seam-gen/test/testng.xml", //$NON-NLS-1$ //$NON-NLS-2$
+ "${" + IParameter.SEAM_TEST_PROJECT_LOCATION_PATH + "}/test-src/${" + ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_PATH + "}/${"+ IParameter.SEAM_LOCAL_INTERFACE_NAME +"}Test.xml"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ ACTION_WAR_MAPPING.add(new String[]{
+ "${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME + "}/seam-gen/view/action.xhtml", //$NON-NLS-1$ //$NON-NLS-2$
+ "${" + IParameter.SEAM_PROJECT_WEBCONTENT_PATH + "}/${" + IParameter.SEAM_PAGE_NAME +"}.xhtml"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+
+ // initialize ear files mapping
+ ACTION_EAR_MAPPING.add(new String[]{
+ "${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME + "}/seam-gen/src/ActionBean.java", //$NON-NLS-1$ //$NON-NLS-2$
+ "${" + IParameter.SEAM_PROJECT_SRC_ACTION + "}/${" + ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_PATH + "}/${" + IParameter.SEAM_BEAN_NAME +"}.java"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ ACTION_EAR_MAPPING.add(new String[]{
+ "${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME + "}/seam-gen/src/Action.java", //$NON-NLS-1$ //$NON-NLS-2$
+ "${" + IParameter.SEAM_PROJECT_SRC_ACTION + "}/${" + ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_PATH + "}/${" + IParameter.SEAM_LOCAL_INTERFACE_NAME +"}.java"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ ACTION_EAR_MAPPING.add(new String[]{
+ "${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME + "}/seam-gen/test/ActionTest.java", //$NON-NLS-1$ //$NON-NLS-2$
+ "${" + IParameter.SEAM_TEST_PROJECT_LOCATION_PATH + "}/test-src/${" + ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_PATH + "}/${"+ IParameter.SEAM_LOCAL_INTERFACE_NAME +"}Test.java"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ ACTION_EAR_MAPPING.add(new String[]{
+ "${" + ISeamFacetDataModelProperties.JBOSS_SEAM_HOME + "}/seam-gen/test/testng.xml", //$NON-NLS-1$ //$NON-NLS-2$
+ "${" + IParameter.SEAM_TEST_PROJECT_LOCATION_PATH + "}/test-src/${" + ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_PATH + "}/${"+ IParameter.SEAM_LOCAL_INTERFACE_NAME +"}Test.xml"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ ACTION_EAR_MAPPING.add(ACTION_WAR_MAPPING.get(3));
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.seam.ui.wizard.SeamBaseOperation#getSessionBeanPackageName(org.eclipse.core.runtime.preferences.IEclipsePreferences, java.util.Map)
+ */
+ @Override
+ protected String getSessionBeanPackageName(IEclipsePreferences seamFacetPrefs, Map<String, INamedElement> wizardParams) {
+ return wizardParams.get(IParameter.SEAM_PACKAGE_NAME).getValue().toString();
+ }
+}
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardCustomizationPage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardCustomizationPage.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardCustomizationPage.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -0,0 +1,71 @@
+ /*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.ui.wizard;
+
+import java.beans.PropertyChangeListener;
+import java.util.Map;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.swt.widgets.Composite;
+import org.jboss.tools.seam.ui.internal.project.facet.ValidatorFactory;
+
+/**
+ * @author Alexey Kazakov
+ */
+public abstract class SeamWizardCustomizationPage extends SeamBaseWizardPage implements IAdaptable, PropertyChangeListener {
+
+ /**
+ * @param pageName
+ * @param title
+ * @param titleImage
+ */
+ public SeamWizardCustomizationPage(String pageName, String title,
+ ImageDescriptor titleImage, IStructuredSelection initialSelection) {
+ super(pageName, title, titleImage, initialSelection);
+ }
+
+ /**
+ * @param pageName
+ */
+ public SeamWizardCustomizationPage(String pageName, IStructuredSelection initSelection) {
+ super(pageName, initSelection);
+ }
+
+ protected void createEditors() {
+ String selectedProject = SeamWizardUtils.getRootSeamProjectName(initialSelection);
+ String packageName = getDefaultPackageName(selectedProject);
+ addEditor(SeamWizardFactory.createSeamJavaPackageSelectionFieldEditor(packageName));
+ setSeamProjectNameData(selectedProject);
+ String projectName = SeamWizardUtils.getRootSeamProjectName(initialSelection);
+ addEditor(SeamWizardFactory.createSeamProjectSelectionFieldEditor(projectName));
+ }
+
+ /**
+ * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
+ */
+ public void createControl(Composite parent) {
+ setControl(new GridLayoutComposite(parent));
+
+ if (!"".equals(editorRegistry.get(IParameter.SEAM_PROJECT_NAME).getValue())){ //$NON-NLS-1$
+ Map errors = ValidatorFactory.SEAM_PROJECT_NAME_VALIDATOR.validate(
+ getEditor(IParameter.SEAM_PROJECT_NAME).getValue(), null);
+ }
+
+ String selectedProject = getEditor(IParameter.SEAM_PROJECT_NAME).getValueAsString();
+
+ if(selectedProject!=null && !"".equals(selectedProject) && isValidProjectSelected()) {
+ isValidRuntimeConfigured(getSelectedProject());
+ }
+ setPageComplete(false);
+ }
+}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java 2008-03-06 16:54:55 UTC (rev 6711)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardFactory.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -12,15 +12,28 @@
package org.jboss.tools.seam.ui.wizard;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.List;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.swt.widgets.Display;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.KnownConfigurations;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
+import org.jboss.tools.seam.core.project.facet.SeamRuntime;
+import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
+import org.jboss.tools.seam.core.project.facet.SeamVersion;
+import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamUIMessages;
+import org.jboss.tools.seam.ui.internal.project.facet.IValidator;
import org.jboss.tools.seam.ui.internal.project.facet.ValidatorFactory;
+import org.jboss.tools.seam.ui.widget.editor.ButtonFieldEditor;
+import org.jboss.tools.seam.ui.widget.editor.CompositeEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory;
+import org.jboss.tools.seam.ui.widget.editor.ITaggedFieldEditor;
+import org.jboss.tools.seam.ui.widget.editor.SeamRuntimeListFieldEditor.SeamRuntimeNewWizard;
/**
* @author eskimo
@@ -95,6 +108,133 @@
}
/**
+ * @param seamVersions Array of seam runtime versions. If length == 0 then use all versions
+ * @param defaultSelection
+ * @param action
+ * @return Editor to select seam runtime
+ */
+ public static IFieldEditor createSeamRuntimeSelectionFieldEditor(SeamVersion[] seamVersions, String defaultValue, NewSeamRuntimeAction action) {
+ IFieldEditor jBossSeamRuntimeEditor = IFieldEditorFactory.INSTANCE
+ .createComboWithButton(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME,
+ SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_SEAM_RUNTIME, getRuntimeNames(seamVersions),
+ defaultValue,
+ true, action, (IValidator)null);
+ return jBossSeamRuntimeEditor;
+ }
+
+ /**
+ * @param seamVersions Array of seam runtime versions. If length == 0 then use all versions
+ * @param defaultSelection
+ * @return Editor to select seam runtime
+ */
+ public static IFieldEditor createSeamRuntimeSelectionFieldEditor(SeamVersion[] seamVersions, String defaultValue) {
+ DefaultNewSeamRuntimeAction action = new DefaultNewSeamRuntimeAction(seamVersions);
+ IFieldEditor jBossSeamRuntimeEditor = createSeamRuntimeSelectionFieldEditor(seamVersions, defaultValue, action);
+ action.setRuntimeSelectionEditor(jBossSeamRuntimeEditor);
+ return jBossSeamRuntimeEditor;
+ }
+
+ /**
+ * @param defaultSelection
+ * @return Editor to select seam runtime of all versions
+ */
+ public static IFieldEditor createSeamRuntimeSelectionFieldEditor(String defaultValue) {
+ DefaultNewSeamRuntimeAction action = new DefaultNewSeamRuntimeAction(new SeamVersion[0]);
+ IFieldEditor jBossSeamRuntimeEditor = createSeamRuntimeSelectionFieldEditor(new SeamVersion[0], defaultValue, action);
+ action.setRuntimeSelectionEditor(jBossSeamRuntimeEditor);
+ return jBossSeamRuntimeEditor;
+ }
+
+ private static List<String> getRuntimeNames(SeamVersion[] seamVersions) {
+ List<String> rtStrings = new ArrayList<String>();
+ for (int i = 0; i < seamVersions.length; i++) {
+ SeamRuntime[] rts = SeamRuntimeManager.getInstance().getRuntimes(seamVersions[i]);
+ for(SeamRuntime seamRuntime : rts) {
+ rtStrings.add(seamRuntime.getName());
+ }
+ }
+ return rtStrings;
+ }
+
+ public static abstract class NewSeamRuntimeAction extends ButtonFieldEditor.ButtonPressedAction {
+
+ public NewSeamRuntimeAction() {
+ super(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_ADD);
+ }
+
+ abstract protected SeamVersion[] getSeamVersions();
+
+ abstract protected IFieldEditor getRuntimeSelectionEditor();
+
+ public void run() {
+ List<SeamRuntime> added = new ArrayList<SeamRuntime>();
+
+ List<SeamVersion> versions = new ArrayList<SeamVersion>(1);
+ SeamVersion[] sv = getSeamVersions();
+ for (int i = 0; i < sv.length; i++) {
+ versions.add(sv[i]);
+ }
+ if(versions.isEmpty()) {
+ SeamVersion[] allVersions = SeamVersion.ALL_VERSIONS;
+ for (int i = 0; i < allVersions.length; i++) {
+ versions.add(allVersions[i]);
+ }
+ }
+ Wizard wiz = new SeamRuntimeNewWizard(
+ (List<SeamRuntime>) new ArrayList<SeamRuntime>(Arrays
+ .asList(SeamRuntimeManager.getInstance()
+ .getRuntimes())), added, versions);
+ WizardDialog dialog = new WizardDialog(Display.getCurrent()
+ .getActiveShell(), wiz);
+ dialog.open();
+
+ if (added.size() > 0) {
+ SeamRuntimeManager.getInstance().addRuntime(added.get(0));
+ List<String> runtimes = getRuntimeNames(sv);
+ getFieldEditor().setValue(added.get(0).getName());
+ ((ITaggedFieldEditor) ((CompositeEditor) getRuntimeSelectionEditor())
+ .getEditors().get(1)).setTags(runtimes
+ .toArray(new String[0]));
+ }
+ }
+
+ }
+
+ /**
+ * Default Action for creating new Seam runtime.
+ * @author Alexey Kazakov
+ */
+ private static class DefaultNewSeamRuntimeAction extends NewSeamRuntimeAction {
+
+ private SeamVersion[] seamVersions;
+ private IFieldEditor runtimeSelectionEditor;
+
+ public DefaultNewSeamRuntimeAction() {
+ super();
+ }
+
+ /**
+ * @param seamVersions
+ */
+ public DefaultNewSeamRuntimeAction(SeamVersion[] seamVersions) {
+ this();
+ this.seamVersions = seamVersions;
+ }
+
+ void setRuntimeSelectionEditor(IFieldEditor runtimeSelectionEditor) {
+ this.runtimeSelectionEditor = runtimeSelectionEditor;
+ }
+
+ protected SeamVersion[] getSeamVersions() {
+ return seamVersions;
+ }
+
+ protected IFieldEditor getRuntimeSelectionEditor() {
+ return runtimeSelectionEditor;
+ }
+ }
+
+ /**
* @return
*/
public static IFieldEditor createSeamComponentNameFieldEditor() {
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java 2008-03-06 16:54:55 UTC (rev 6711)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java 2008-03-06 17:31:03 UTC (rev 6712)
@@ -48,38 +48,40 @@
return getRootSeamProjectName(sel);
}
- public static String getRootSeamProjectName(ISelection sel) {
- IProject project = getInitialProject(sel);
+ public static IProject getRootSeamProject(IProject project) {
if (project != null) {
- ISeamProject seamProject = SeamCorePlugin.getSeamProject(project,
- false);
+ ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, false);
if (seamProject == null) {
- return "";
+ return null;
}
-
-
+
String parentProjectName = seamProject.getParentProjectName();
-
+
IProject targetProject = null;
if (parentProjectName == null) {
- targetProject = ResourcesPlugin.getWorkspace().getRoot().getProject(project.getName());
+ targetProject = project;
} else {
targetProject = ResourcesPlugin.getWorkspace().getRoot().getProject(parentProjectName);
}
-
+
if(targetProject.exists()) {
if("".equals(SeamCorePlugin.getSeamPreferences(targetProject).get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS, ""))) {
- return "";
+ return null;
} else {
- return targetProject.getName();
+ return targetProject;
}
}
}
- return "";
+ return null;
}
- static private IProject getInitialProject(ISelection simpleSelection) {
+ public static String getRootSeamProjectName(ISelection sel) {
+ IProject project = getRootSeamProject(getInitialProject(sel));
+ return project == null ? "" : project.getName();
+ }
+ public static IProject getInitialProject(ISelection simpleSelection) {
+
IProject project = null;
if (simpleSelection != null && !simpleSelection.isEmpty()
&& simpleSelection instanceof IStructuredSelection) {
16 years, 3 months
JBoss Tools SVN: r6711 - in trunk/jbpm/docs: resources and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-03-06 11:54:55 -0500 (Thu, 06 Mar 2008)
New Revision: 6711
Removed:
trunk/jbpm/docs/reference/build.xml
trunk/jbpm/docs/resources/support.xml
trunk/jbpm/docs/resources/support/
Log:
http://jira.jboss.com/jira/browse/JBIDE-1703
ant resources are deleted, build is moved to maven
Deleted: trunk/jbpm/docs/reference/build.xml
===================================================================
--- trunk/jbpm/docs/reference/build.xml 2008-03-06 16:53:40 UTC (rev 6710)
+++ trunk/jbpm/docs/reference/build.xml 2008-03-06 16:54:55 UTC (rev 6711)
@@ -1,23 +0,0 @@
-<project name="Documentation" default="all.doc" basedir=".">
-
- <property name="modulename" value="jbpm"></property>
- <condition property="build.dir" value="${doc-root}/${modulename}" else="${basedir}/../build/reference">
- <isset property="doc-root"/>
- </condition>
-
- <!-- Set the following property to generate the doco in the output folder -->
- <property name="pdf.name" value="jBPM_Tools_Ref.pdf" />
- <import file="../resources/support.xml" />
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang" value="en"/></antcall>
- </target>
-
- <!-- Use this alternate target to enable uptodate checking, i.e.
- don't generate docs if nothing has changed
- <target name="all.doc">
- <antcall target="lang.all.run"><param name="lang" value="en"/></antcall>
- </target>
- -->
-
-</project>
Deleted: trunk/jbpm/docs/resources/support.xml
===================================================================
--- trunk/jbpm/docs/resources/support.xml 2008-03-06 16:53:40 UTC (rev 6710)
+++ trunk/jbpm/docs/resources/support.xml 2008-03-06 16:54:55 UTC (rev 6711)
@@ -1,269 +0,0 @@
-<project name="DocSupport" default="all.doc" basedir=".">
-
- <dirname property="support.startdir" file="${ant.file.DocSupport}"/>
-
- <property name="support.basedir" value="${support.startdir}"/>
-
- <property file="${support.basedir}/support.properties" />
-
- <!-- Set build directories for all formats. -->
- <property name="build.dir" value="${basedir}/build"/>
-
- <!-- Support files for build process. -->
- <property name="support.dir" value="${support.basedir}/support"/>
- <property name="styles.dir" value="${support.basedir}/styles"/>
-
- <!-- Set DocBook stylesheets. -->
- <property name="db.style.fopdf" value="fopdf.xsl"/>
- <property name="db.style.html" value="html_chunk.xsl"/>
- <property name="db.style.htmlsingle" value="html.xsl"/>
-
- <property name="maxmem" value="1024m" />
-
- <xmlcatalog id="docbook.catalog">
- <catalogpath path="${support.basedir}/docbook-dtd/catalog.xml" />
- </xmlcatalog>
-
-
- <!-- Classpath for the build tools. -->
- <path id="lib.classpath">
- <fileset dir="${support.dir}/lib">
- <include name="**/*.jar"/>
- </fileset>
- <dirset dir="." />
- <fileset dir="${support.dir}/lib">
- <include name="**/*.jar"/>
- <exclude name="**/saxon1.jar"/>
- </fileset>
- </path>
-
- <property name="fop.home" value="${support.dir}/lib"/>
-
- <taskdef name="fop"
- classname="org.apache.fop.tools.anttasks.Fop">
- <classpath refid="lib.classpath">
-
- </classpath>
- </taskdef>
-
- <!-- ################################################################## -->
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang" value="en"/></antcall>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.all.bypass.check" unless="lang.all.bypass.disabled">
- <uptodate property="lang.all.bypass.on" targetfile="${build.dir}/${lang}/pdf/${pdf.name}">
- <srcfiles dir="${support.basedir}" includes="**"/>
- <srcfiles dir="${basedir}/${lang}" includes="**"/>
- <srcfiles dir="${basedir}" includes="build.xml"/>
- </uptodate>
- </target>
-
- <target name="lang.all.run" depends="lang.all.bypass.check, lang.all.bypass.message" unless="lang.all.bypass.on">
- <antcall target="clean"/>
- <antcall target="lang.all"/>
- </target>
-
- <target name="lang.all.bypass.message" if="lang.all.bypass.on">
- <echo>Already uptodate: ${build.dir}/${lang}/pdf/${pdf.name}</echo>
- <echo>add -Dlang.all.bypass.disabled=true to force a rebuild</echo>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.dochtml.bypass.check" unless="lang.dochtml.bypass.disabled">
- <uptodate property="lang.dochtml.bypass.on" targetfile="${build.dir}/${lang}/html/index.html">
- <srcfiles dir="${support.basedir}" includes="**"/>
- <srcfiles dir="${basedir}/${lang}" includes="**"/>
- <srcfiles dir="${basedir}" includes="build.xml"/>
- </uptodate>
- </target>
-
- <target name="lang.dochtml.run" depends="lang.dochtml.bypass.check, lang.dochtml.bypass.message" unless="lang.dochtml.bypass.on">
- <antcall target="clean.dochtml"/>
- <antcall target="lang.dochtml"/>
- <antcall target="lang.dochtmlsingle"/>
- </target>
-
- <target name="lang.dochtml.bypass.message" if="lang.dochtml.bypass.on">
- <echo>Already uptodate: ${build.dir}/${lang}/html/index.html</echo>
- <echo>add -Dlang.dochtml.bypass.disabled=true to force a rebuild</echo>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="clean">
- <!-- Delete build directory. -->
- <delete dir="${build.dir}"/>
- </target>
-
- <target name="clean.dochtml">
- <!-- Delete build directory for single html -->
- <delete dir="${build.dir}/${lang}/html"/>
- <delete dir="${build.dir}/${lang}/html_single"/>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.all">
- <antcall target="lang.docpdf"/>
- <antcall target="lang.dochtml"/>
- <antcall target="lang.dochtmlsingle"/>
- <!--
- <antcall target="lang.htmlmisc"/>
- -->
- </target>
-
- <target name="lang.docpdf">
- <!-- Copy all the images to the output location,
- will be removed later. -->
- <copy todir="${build.dir}/${lang}/pdf/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.svg"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
-
- <!-- Create the XSL/FO temporary file. -->
-
- <java classname="com.icl.saxon.StyleSheet"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="-o" />
- <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.fopdf}"/>
- </java>
-
-
-<!--
- <xslt out="${build.dir}/${lang}/pdf/docbook_fop.tmp"
- in="${basedir}/${lang}/master.xml"
- style="${styles.dir}/${lang}/${db.style.fopdf}">
- <xmlcatalog refid="docbook.catalog"/>
- </xslt>
--->
- <!-- Create a PDF from the XSL/FO. -->
-
- <fop format="application/pdf"
- basedir="${build.dir}/${lang}/pdf"
- outfile="${build.dir}/${lang}/pdf/${pdf.name}"
- fofile="${build.dir}/${lang}/pdf/docbook_fop.tmp"
- messagelevel="debug">
-
- </fop>
-
-<!-- <java classname="org.apache.fop.cli.Main"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}" failonerror="true">
- <classpath refid="lib.classpath"/>
- <sysproperty key="fop.home" path="${support.dir}/lib"/>
- <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <arg value="${build.dir}/${lang}/pdf/${pdf.name}"/>
- </java>
--->
- <!-- Delete temporary files. -->
- <delete file="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <delete dir="${build.dir}/${lang}/pdf/images"/>
- </target>
-
- <target name="lang.dochtml">
- <mkdir dir="${build.dir}/${lang}/html/"/>
-
- <!-- Copy all the images to the output location -->
- <copy todir="${build.dir}/${lang}/html/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.js"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/html/css/images">
- <fileset dir="${styles.dir}/${lang}/Images">
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
-
- <java classname="com.icl.saxon.StyleSheet"
- fork="true" dir="${build.dir}/${lang}/html">
- <classpath refid="lib.classpath"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.html}"/>
- </java>
- </target>
-
- <target name="lang.dochtmlsingle">
- <mkdir dir="${build.dir}/${lang}/html_single/"/>
-
- <!-- Copy all the images to the output location -->
- <copy todir="${build.dir}/${lang}/html_single/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html_single/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
-
-
- <copy todir="${build.dir}/${lang}/html_single/css/images">
- <fileset dir="${styles.dir}/${lang}/Images">
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/html_single">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.js"/>
- </fileset>
- </copy>
- <java classname="com.icl.saxon.StyleSheet"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="-o"/>
- <arg value="${build.dir}/${lang}/html_single/index.html"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.htmlsingle}"/>
- </java>
- </target>
-
- <!-- I do not really like to have external dependency for HTML pages
- So, I am not using this task ... -->
- <target name="lang.htmlmisc">
- <!-- Copy images and CSS for HTML documentation, language specific. -->
- <copy todir="${build.dir}/${lang}/shared/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/shared/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
- </target>
-</project>
16 years, 3 months
JBoss Tools SVN: r6710 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-03-06 11:53:40 -0500 (Thu, 06 Mar 2008)
New Revision: 6710
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1692
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizard.java 2008-03-06 16:51:10 UTC (rev 6709)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamActionWizard.java 2008-03-06 16:53:40 UTC (rev 6710)
@@ -17,7 +17,9 @@
import org.eclipse.core.commands.operations.IUndoableOperation;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.INamedElement;
@@ -29,6 +31,12 @@
*/
public class SeamActionWizard extends SeamBaseWizard implements INewWizard {
+ public void createPageControls(Composite pageContainer) {
+ super.createPageControls(pageContainer);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer, "org.jboss.tools.seam.guide.new_seam_action");
+ }
+
+
/**
*
*/
@@ -36,7 +44,6 @@
super(CREATE_SEAM_ACTION);
setWindowTitle(SeamUIMessages.SEAM_ACTION_WIZARD_NEW_SEAM_ACTION);
setDefaultPageImageDescriptor(ImageDescriptor.createFromFile(SeamActionWizard.class, "SeamFormWizBan.png")); //$NON-NLS-1$
-
}
@Override
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java 2008-03-06 16:51:10 UTC (rev 6709)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamConversationWizard.java 2008-03-06 16:53:40 UTC (rev 6710)
@@ -17,13 +17,20 @@
import org.eclipse.core.commands.operations.IUndoableOperation;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.INamedElement;
public class SeamConversationWizard extends SeamBaseWizard implements INewWizard {
-
+
+ public void createPageControls(Composite pageContainer) {
+ super.createPageControls(pageContainer);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer, "org.jboss.tools.seam.guide.new_seam_conversation");
+ }
+
public SeamConversationWizard() {
super(CREATE_SEAM_CONVERSATION);
setWindowTitle(SeamUIMessages.SEAM_CONVERSATION_WIZARD_CREATE_NEW_CONVERSATION);
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizard.java 2008-03-06 16:51:10 UTC (rev 6709)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamEntityWizard.java 2008-03-06 16:53:40 UTC (rev 6710)
@@ -17,7 +17,9 @@
import org.eclipse.core.commands.operations.IUndoableOperation;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.seam.core.SeamProjectsSet;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamUIMessages;
@@ -28,7 +30,11 @@
*
*/
public class SeamEntityWizard extends SeamBaseWizard implements INewWizard {
-
+
+ public void createPageControls(Composite pageContainer) {
+ super.createPageControls(pageContainer);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer, "org.jboss.tools.seam.guide.new_seam_entity");
+ }
/**
*
*/
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizard.java 2008-03-06 16:51:10 UTC (rev 6709)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamFormWizard.java 2008-03-06 16:53:40 UTC (rev 6710)
@@ -18,7 +18,9 @@
import org.eclipse.core.commands.operations.IUndoableOperation;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamUIMessages;
import org.jboss.tools.seam.ui.widget.editor.INamedElement;
@@ -29,7 +31,11 @@
*
*/
public class SeamFormWizard extends SeamBaseWizard implements INewWizard {
-
+
+ public void createPageControls(Composite pageContainer) {
+ super.createPageControls(pageContainer);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer, "org.jboss.tools.seam.guide.new_seam_form");
+ }
/**
*
*/
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java 2008-03-06 16:51:10 UTC (rev 6709)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java 2008-03-06 16:53:40 UTC (rev 6710)
@@ -30,7 +30,9 @@
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.PlatformUI;
import org.hibernate.eclipse.launch.HibernateLaunchConstants;
import org.jboss.tools.jst.web.WebUtils;
import org.jboss.tools.seam.core.ISeamProject;
@@ -47,7 +49,12 @@
* @author Alexey Kazakov
*/
public class SeamGenerateEnitiesWizard extends SeamBaseWizard implements INewWizard {
-
+
+ public void createPageControls(Composite pageContainer) {
+ super.createPageControls(pageContainer);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(pageContainer, "org.jboss.tools.seam.guide.generate_seam_entities");
+ }
+
public SeamGenerateEnitiesWizard() {
super(GENERATE_SEAM_ENTITIES);
setWindowTitle(SeamUIMessages.GENERATE_SEAM_ENTITIES_WIZARD_TITLE);
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2008-03-06 16:51:10 UTC (rev 6709)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2008-03-06 16:53:40 UTC (rev 6710)
@@ -81,6 +81,7 @@
@Override
public void createPageControls(Composite container) {
super.createPageControls(container);
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(container, "org.jboss.tools.seam.guide.new_seam_project");
Control control = findGroupByText(getShell(), SeamUIMessages.SEAM_PROJECT_WIZARD_EAR_MEMBERSHIP);
if (control != null)
control.setVisible(false);
@@ -142,7 +143,7 @@
protected Composite createTopLevelComposite(Composite parent) {
Composite top = new Composite(parent, SWT.NONE);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(top, getInfopopID());
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(top, "org.jboss.tools.seam.guide.new_seam_project");
top.setLayout(new GridLayout());
top.setLayoutData(new GridData(GridData.FILL_BOTH));
createProjectGroup(top);
16 years, 3 months
JBoss Tools SVN: r6709 - in trunk/documentation/guides: resources and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-03-06 11:51:10 -0500 (Thu, 06 Mar 2008)
New Revision: 6709
Removed:
trunk/documentation/guides/build.xml
trunk/documentation/guides/resources/support.xml
trunk/documentation/guides/resources/support/
trunk/documentation/guides/userguide/Exadel-migration/build.xml
trunk/documentation/guides/userguide/GettingStartedGuide/build.xml
trunk/documentation/guides/userguide/Legacy-jsf-struts/build.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1703
ant resources are deleted, builds are moved to maven
Deleted: trunk/documentation/guides/build.xml
===================================================================
--- trunk/documentation/guides/build.xml 2008-03-06 16:47:30 UTC (rev 6708)
+++ trunk/documentation/guides/build.xml 2008-03-06 16:51:10 UTC (rev 6709)
@@ -1,27 +0,0 @@
-<project name="All Docs" default="build" basedir=".">
-
- <tstamp>
- <format property="timestamp" pattern="d-MMMM-yyyy hh:mm z"/>
- </tstamp>
-
- <!-- Copying the index file first to have index even though some of the build steps fail -->
- <copy overwrite="true" file="userguide/nightly-build-index.html" tofile="build/index.html">
- <filterset>
- <filter token="TIMESTAMP" value="${timestamp}"/>
- </filterset>
- </copy>
-
- <target name="build">
- <subant target="">
- <fileset dir="." includes="userguide/*/build.xml"/>
- </subant>
- </target>
-
- <target name="clean">
- <subant target="clean">
- <fileset dir="." includes="userguide/*/build.xml"/>
- </subant>
- </target>
-
-
- </project>
Deleted: trunk/documentation/guides/resources/support.xml
===================================================================
--- trunk/documentation/guides/resources/support.xml 2008-03-06 16:47:30 UTC (rev 6708)
+++ trunk/documentation/guides/resources/support.xml 2008-03-06 16:51:10 UTC (rev 6709)
@@ -1,269 +0,0 @@
-<project name="DocSupport" default="all.doc" basedir=".">
-
- <dirname property="support.startdir" file="${ant.file.DocSupport}"/>
-
- <property name="support.basedir" value="${support.startdir}"/>
-
- <property file="${support.basedir}/support.properties" />
-
- <!-- Set build directories for all formats. -->
- <property name="build.dir" value="${basedir}/build"/>
-
- <!-- Support files for build process. -->
- <property name="support.dir" value="${support.basedir}/support"/>
- <property name="styles.dir" value="${support.basedir}/styles"/>
-
- <!-- Set DocBook stylesheets. -->
- <property name="db.style.fopdf" value="fopdf.xsl"/>
- <property name="db.style.html" value="html_chunk.xsl"/>
- <property name="db.style.htmlsingle" value="html.xsl"/>
-
- <property name="maxmem" value="1024m" />
-
- <xmlcatalog id="docbook.catalog">
- <catalogpath path="${support.basedir}/docbook-dtd/catalog.xml" />
- </xmlcatalog>
-
-
- <!-- Classpath for the build tools. -->
- <path id="lib.classpath">
- <fileset dir="${support.dir}/lib">
- <include name="**/*.jar"/>
- </fileset>
- <dirset dir="." />
- <fileset dir="${support.dir}/lib">
- <include name="**/*.jar"/>
- <exclude name="**/saxon1.jar"/>
- </fileset>
- </path>
-
- <property name="fop.home" value="${support.dir}/lib"/>
-
- <taskdef name="fop"
- classname="org.apache.fop.tools.anttasks.Fop">
- <classpath refid="lib.classpath">
-
- </classpath>
- </taskdef>
-
- <!-- ################################################################## -->
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang" value="en"/></antcall>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.all.bypass.check" unless="lang.all.bypass.disabled">
- <uptodate property="lang.all.bypass.on" targetfile="${build.dir}/${lang}/pdf/${pdf.name}">
- <srcfiles dir="${support.basedir}" includes="**"/>
- <srcfiles dir="${basedir}/${lang}" includes="**"/>
- <srcfiles dir="${basedir}" includes="build.xml"/>
- </uptodate>
- </target>
-
- <target name="lang.all.run" depends="lang.all.bypass.check, lang.all.bypass.message" unless="lang.all.bypass.on">
- <antcall target="clean"/>
- <antcall target="lang.all"/>
- </target>
-
- <target name="lang.all.bypass.message" if="lang.all.bypass.on">
- <echo>Already uptodate: ${build.dir}/${lang}/pdf/${pdf.name}</echo>
- <echo>add -Dlang.all.bypass.disabled=true to force a rebuild</echo>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.dochtml.bypass.check" unless="lang.dochtml.bypass.disabled">
- <uptodate property="lang.dochtml.bypass.on" targetfile="${build.dir}/${lang}/html/index.html">
- <srcfiles dir="${support.basedir}" includes="**"/>
- <srcfiles dir="${basedir}/${lang}" includes="**"/>
- <srcfiles dir="${basedir}" includes="build.xml"/>
- </uptodate>
- </target>
-
- <target name="lang.dochtml.run" depends="lang.dochtml.bypass.check, lang.dochtml.bypass.message" unless="lang.dochtml.bypass.on">
- <antcall target="clean.dochtml"/>
- <antcall target="lang.dochtml"/>
- <antcall target="lang.dochtmlsingle"/>
- </target>
-
- <target name="lang.dochtml.bypass.message" if="lang.dochtml.bypass.on">
- <echo>Already uptodate: ${build.dir}/${lang}/html/index.html</echo>
- <echo>add -Dlang.dochtml.bypass.disabled=true to force a rebuild</echo>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="clean">
- <!-- Delete build directory. -->
- <delete dir="${build.dir}"/>
- </target>
-
- <target name="clean.dochtml">
- <!-- Delete build directory for single html -->
- <delete dir="${build.dir}/${lang}/html"/>
- <delete dir="${build.dir}/${lang}/html_single"/>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.all">
- <antcall target="lang.docpdf"/>
- <antcall target="lang.dochtml"/>
- <antcall target="lang.dochtmlsingle"/>
- <!--
- <antcall target="lang.htmlmisc"/>
- -->
- </target>
-
- <target name="lang.docpdf">
- <!-- Copy all the images to the output location,
- will be removed later. -->
- <copy todir="${build.dir}/${lang}/pdf/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.svg"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
-
- <!-- Create the XSL/FO temporary file. -->
-
- <java classname="com.icl.saxon.StyleSheet"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="-o" />
- <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.fopdf}"/>
- </java>
-
-
-<!--
- <xslt out="${build.dir}/${lang}/pdf/docbook_fop.tmp"
- in="${basedir}/${lang}/master.xml"
- style="${styles.dir}/${lang}/${db.style.fopdf}">
- <xmlcatalog refid="docbook.catalog"/>
- </xslt>
--->
- <!-- Create a PDF from the XSL/FO. -->
-
- <fop format="application/pdf"
- basedir="${build.dir}/${lang}/pdf"
- outfile="${build.dir}/${lang}/pdf/${pdf.name}"
- fofile="${build.dir}/${lang}/pdf/docbook_fop.tmp"
- messagelevel="debug">
-
- </fop>
-
-<!-- <java classname="org.apache.fop.cli.Main"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}" failonerror="true">
- <classpath refid="lib.classpath"/>
- <sysproperty key="fop.home" path="${support.dir}/lib"/>
- <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <arg value="${build.dir}/${lang}/pdf/${pdf.name}"/>
- </java>
--->
- <!-- Delete temporary files. -->
- <delete file="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <delete dir="${build.dir}/${lang}/pdf/images"/>
- </target>
-
- <target name="lang.dochtml">
- <mkdir dir="${build.dir}/${lang}/html/"/>
-
- <!-- Copy all the images to the output location -->
- <copy todir="${build.dir}/${lang}/html/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.js"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/html/css/images">
- <fileset dir="${styles.dir}/${lang}/Images">
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
-
- <java classname="com.icl.saxon.StyleSheet"
- fork="true" dir="${build.dir}/${lang}/html">
- <classpath refid="lib.classpath"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.html}"/>
- </java>
- </target>
-
- <target name="lang.dochtmlsingle">
- <mkdir dir="${build.dir}/${lang}/html_single/"/>
-
- <!-- Copy all the images to the output location -->
- <copy todir="${build.dir}/${lang}/html_single/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html_single/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
-
-
- <copy todir="${build.dir}/${lang}/html_single/css/images">
- <fileset dir="${styles.dir}/${lang}/Images">
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/html_single">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.js"/>
- </fileset>
- </copy>
- <java classname="com.icl.saxon.StyleSheet"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="-o"/>
- <arg value="${build.dir}/${lang}/html_single/index.html"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.htmlsingle}"/>
- </java>
- </target>
-
- <!-- I do not really like to have external dependency for HTML pages
- So, I am not using this task ... -->
- <target name="lang.htmlmisc">
- <!-- Copy images and CSS for HTML documentation, language specific. -->
- <copy todir="${build.dir}/${lang}/shared/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/shared/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
- </target>
-</project>
Deleted: trunk/documentation/guides/userguide/Exadel-migration/build.xml
===================================================================
--- trunk/documentation/guides/userguide/Exadel-migration/build.xml 2008-03-06 16:47:30 UTC (rev 6708)
+++ trunk/documentation/guides/userguide/Exadel-migration/build.xml 2008-03-06 16:51:10 UTC (rev 6709)
@@ -1,23 +0,0 @@
-<project name="Documentation" default="all.doc" basedir=".">
-
- <property name="modulename" value="Exadel-migration"></property>
- <condition property="build.dir" value="${doc-root}/${modulename}" else="${basedir}/../../build/Exadel-migration">
- <isset property="doc-root"/>
- </condition>
- <!-- Set the following property to generate the doco in the output folder -->
-
- <property name="pdf.name" value="Exadel-migration.pdf" />
- <import file="../../resources/support.xml" />
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang" value="en"/></antcall>
- </target>
-
- <!-- Use this alternate target to enable uptodate checking, i.e.
- don't generate docs if nothing has changed
- <target name="all.doc">
- <antcall target="lang.all.run"><param name="lang" value="en"/></antcall>
- </target>
- -->
-
-</project>
Deleted: trunk/documentation/guides/userguide/GettingStartedGuide/build.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/build.xml 2008-03-06 16:47:30 UTC (rev 6708)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/build.xml 2008-03-06 16:51:10 UTC (rev 6709)
@@ -1,22 +0,0 @@
-<project name="Documentation" default="all.doc" basedir=".">
-
- <property name="modulename" value="GettingStartedGuide"></property>
- <condition property="build.dir" value="${doc-root}/${modulename}" else="${basedir}/../../build/GettingStartedGuide">
- <isset property="doc-root"/>
- </condition>
-
- <property name="pdf.name" value="Getting_Started_with_JBDS.pdf" />
- <import file="../../resources/support.xml" />
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang" value="en"/></antcall>
- </target>
-
- <!-- Use this alternate target to enable uptodate checking, i.e.
- don't generate docs if nothing has changed
- <target name="all.doc">
- <antcall target="lang.all.run"><param name="lang" value="en"/></antcall>
- </target>
- -->
-
-</project>
Deleted: trunk/documentation/guides/userguide/Legacy-jsf-struts/build.xml
===================================================================
--- trunk/documentation/guides/userguide/Legacy-jsf-struts/build.xml 2008-03-06 16:47:30 UTC (rev 6708)
+++ trunk/documentation/guides/userguide/Legacy-jsf-struts/build.xml 2008-03-06 16:51:10 UTC (rev 6709)
@@ -1,23 +0,0 @@
-<project name="Documentation" default="all.doc" basedir=".">
-
- <!-- Set the following property to generate the doco in the output folder -->
- <property name="modulename" value="legacy-jsf-struts"></property>
- <condition property="build.dir" value="${doc-root}/${modulename}" else="${basedir}/../../build/legacy-jsf-struts">
- <isset property="doc-root"/>
- </condition>
-
- <property name="pdf.name" value="Legacy-jsf-struts.pdf" />
- <import file="../../resources/support.xml" />
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang" value="en"/></antcall>
- </target>
-
- <!-- Use this alternate target to enable uptodate checking, i.e.
- don't generate docs if nothing has changed
- <target name="all.doc">
- <antcall target="lang.all.run"><param name="lang" value="en"/></antcall>
- </target>
- -->
-
-</project>
16 years, 3 months
JBoss Tools SVN: r6708 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-03-06 11:47:30 -0500 (Thu, 06 Mar 2008)
New Revision: 6708
Modified:
trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-162 - inserting transitional sentences where apropriste as well as Relevant Resources Links sections
Modified: trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml 2008-03-06 16:45:20 UTC (rev 6707)
+++ trunk/jsf/docs/userguide/en/modules/JSFStruts_tools.xml 2008-03-06 16:47:30 UTC (rev 6708)
@@ -610,8 +610,9 @@
also possible to add <property>JSF capability</property>
(JSF libraries, tag libraries) to any existing Eclipse
project in your workspace. After that you'll be
- able to make use of such <property>JBoss Developer Studio</property> editors as JSF
- configuration editor, JBoss Tools JSP editor and any others.</para>
+ able to make use of such <property>JBoss Developer
+ Studio</property> editors as JSF configuration editor, JBoss
+ Tools JSP editor and any others.</para>
<para>Right click the project and select <emphasis>
<property>JBoss Tools > Add JSF
Capabilities</property>. </emphasis> This will start
@@ -628,8 +629,8 @@
</mediaobject>
</figure>
<para>The wizard will first ask you to show the <emphasis>
- <property>web.xml</property></emphasis> file
- location and the project name.</para>
+ <property>web.xml</property>
+ </emphasis> file location and the project name.</para>
<figure>
<title>Project Location</title>
<mediaobject>
@@ -646,8 +647,8 @@
<para>Make sure to select <emphasis>
<property>Add Libraries</property>
- </emphasis> for <property>JBoss Developer Studio</property> to add all required
- JSF related libraries to this project.</para>
+ </emphasis> for <property>JBoss Developer Studio</property>
+ to add all required JSF related libraries to this project.</para>
<para>The <emphasis>
<property>Context Path</property>
@@ -681,9 +682,10 @@
</figure>
<para>Once your project is imported you can see that JSF related
libraries have been added to your project: <emphasis>
- <property>jsf-api.jar</property></emphasis> and
- <emphasis>
- <property>jsf-impl.jar</property></emphasis>.</para>
+ <property>jsf-api.jar</property>
+ </emphasis> and <emphasis>
+ <property>jsf-impl.jar</property>
+ </emphasis>.</para>
<note>
<title>Note:</title>
<para>Some application servers provide their own jsf
@@ -713,20 +715,22 @@
<title>Adding Your Own Project Templates</title>
<para>Template is a set of files that serve as a basis to facilitate
the creation of a new project. Project templates provide
- content and structure for a project.</para>
- <para><property>JBoss Developer Studio</property> has a powerful templating capability
- for creating new and importing existing Struts and JSF
- projects. This templating facility has a variety of aspects
- to consider. But, let's start with the most
- straightforward case.</para>
+ content and structure for a project. <property>JBoss
+ Developer Studio</property> has a powerful
+ templating capability for creating new and importing
+ existing Struts and JSF projects. This templating facility
+ has a variety of aspects to consider. But, let's
+ start with the most straightforward case and consider the
+ process of creating a template from your existing JSF
+ project.</para>
<para>Let's say you have a project that you want to use as
the basis for a new <property>template</property>. Follow
these steps to make a template out of it:</para>
<itemizedlist>
<listitem>
- <para>In the Web Projects view, right-click the
- project and select <emphasis>
+ <para>In the <property>Web Projects view</property>,
+ right-click the project and select <emphasis>
<property>JBoss Tools JSF > Save As
Template</property>
</emphasis> as template </para>
@@ -805,7 +809,9 @@
<title>Graphical Editor and Viewing for JSF Configuration Files</title>
<para>JBDS provides a graphical editor for working with JSF configuration
- file (faces-config.xml). The editor has three main viewers (modes):</para>
+ file (<emphasis>
+ <property>faces-config.xml</property>
+ </emphasis>). The editor has three main viewers (modes):</para>
<itemizedlist>
<listitem>
@@ -823,7 +829,9 @@
<para>The JSF configuration editor also comes with a very useful <link
linkend="OpenOnSelection4Hyperlinknavigation">OpenOn</link>
- selection feature.</para>
+ selection feature. Now let's dwell on all specific
+ functionality which is provided for work with JSF configuration
+ file.</para>
<section id="Diagram9553">
@@ -991,10 +999,11 @@
<section id="ErrorReporting3324">
<title>Error Reporting</title>
- <para>When you are developing your project, JBoss Developer Studio
- constantly provides error checking. This greatly reduces
- your development time as it allows you to catch many of the
- errors during development.</para>
+ <para>When you are developing your project, <property>JBoss
+ Developer Studio</property> constantly provides
+ error checking. This greatly reduces your development time
+ as it allows you to catch many of the errors during
+ development.</para>
<para>Errors will be reported by JBoss Developer Studio's
<link linkend="verif_valid"> verification</link>
facility:</para>
@@ -1228,7 +1237,9 @@
</imageobject>
</mediaobject>
</figure>
-
+ <para>Thus, we've discussed everything which comes to
+ creating a new Managed Bean. Further we will show you how to
+ add already existing Bean into a JSF configuration file.</para>
</section>
<section id="AddExistingJavaBeansToAJSFConfigurationFile74332">
@@ -1626,15 +1637,18 @@
</figure>
</section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>If you don't familiar with <ulink url="http://java.sun.com/javaee/javaserverfaces/">JSF
+ technology</ulink>, we suggest that you walk through the information on the topic.</para>
+ </section>
</section>
<section id="Struts_support">
<title>Struts support</title>
- <para>If you prefer develop web applications using <ulink
- url="http://struts.apache.org/">
- <property>Struts</property>
- </ulink> technology JBoss Developer Studio also meets your needs.</para>
+ <para>If you prefer develop web applications using
+ <property>Struts</property> technology JBoss Developer Studio also meets your needs.</para>
<para>JBDS supports the <property>Struts 1.1</property>, <property>1.2.x</property>
versions.</para>
@@ -2655,6 +2669,12 @@
</figure>
</section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>Find out necessary information on <ulink
+ url="http://struts.apache.org/">Struts technology</ulink> if you don't know enough.</para>
+ </section>
+
</section>
<section id="verif_valid">
@@ -2663,8 +2683,8 @@
<para>As you are developing your project, JBoss Developer Studio Verification
constantly provides dynamic <property>validation</property>, consistency
checking and error checking. This greatly reduces your development time as
- it allows you to catch many of the errors during development. JBoss
- Developer Studio provides dynamic verification for both JSF and Struts
+ it allows you to catch many of the errors during development. <property>JBoss
+ Developer Studio</property> provides dynamic verification for both JSF and Struts
projects.</para>
16 years, 3 months
JBoss Tools SVN: r6707 - trunk/jsf/docs/userguide.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-03-06 11:45:20 -0500 (Thu, 06 Mar 2008)
New Revision: 6707
Added:
trunk/jsf/docs/userguide/pom.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1703
maven pom files is added, build is moved to maven
Added: trunk/jsf/docs/userguide/pom.xml
===================================================================
--- trunk/jsf/docs/userguide/pom.xml (rev 0)
+++ trunk/jsf/docs/userguide/pom.xml 2008-03-06 16:45:20 UTC (rev 6707)
@@ -0,0 +1,114 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>server-manager-ref-guide-${translation}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jdocbook</packaging>
+ <name>Server_Manager_Reference_Guide_(${translation})</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.0.0</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-jdocbook-style</artifactId>
+ <version>1.0.0</version>
+ <type>jdocbook-style</type>
+ </dependency>
+ <dependency>
+ <groupId>com.uwyn</groupId>
+ <artifactId>jhighlight</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>de.java2html</groupId>
+ <artifactId>java2html</artifactId>
+ <version>5.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.exadel.docbook.colorer</groupId>
+ <artifactId>highlight</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <sourceDocumentName>master.xml</sourceDocumentName>
+ <sourceDirectory>${pom.basedir}/en</sourceDirectory>
+ <imageResource>
+ <directory>${pom.basedir}/en</directory>
+ <includes>
+ <include>images/**/*</include>
+ </includes>
+ </imageResource>
+ <!--<cssResource>
+ <directory>src/main/css</directory>
+ </cssResource>-->
+ <formats>
+ <format>
+ <formatName>pdf</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-pdf.xsl</stylesheetResource>
+ <finalName>${pom.name}.pdf</finalName>
+ </format>
+ <format>
+ <formatName>html</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>html_single</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/nochunk-html.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ <format>
+ <formatName>eclipse</formatName>
+ <stylesheetResource>classpath:/xslt/org/jboss/main-eclipse.xsl</stylesheetResource>
+ <finalName>index.html</finalName>
+ </format>
+ </formats>
+ <options>
+ <xincludeSupported>true</xincludeSupported>
+ <xmlTransformerType>saxon</xmlTransformerType>
+ <!-- needed for uri-resolvers; can be ommitted if using 'current' uri scheme -->
+ <!-- could also locate the docbook dependency and inspect its version... -->
+ <docbookVersion>1.72.0</docbookVersion>
+ </options>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
+ <!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
+ <!-- todo : replace this with direct svn access once the svnkit providers are available -->
+ <id>repository.jboss.org</id>
+ <url>file://${maven.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <url>dav:https://snapshots.jboss.org/maven2</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <properties>
+ <translation>en-US</translation>
+ </properties>
+
+
+</project>
16 years, 3 months
JBoss Tools SVN: r6706 - in trunk/jsf/docs: userguide and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2008-03-06 11:43:54 -0500 (Thu, 06 Mar 2008)
New Revision: 6706
Removed:
trunk/jsf/docs/resources/support.xml
trunk/jsf/docs/resources/support/
trunk/jsf/docs/userguide/build.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1703
ant resources are deleted, builds are moved to maven
Deleted: trunk/jsf/docs/resources/support.xml
===================================================================
--- trunk/jsf/docs/resources/support.xml 2008-03-06 16:39:44 UTC (rev 6705)
+++ trunk/jsf/docs/resources/support.xml 2008-03-06 16:43:54 UTC (rev 6706)
@@ -1,288 +0,0 @@
-<project name="DocSupport" default="all.doc" basedir=".">
-
- <dirname property="support.startdir" file="${ant.file.DocSupport}"/>
- <property environment="env"></property>
- <property name="support.basedir" value="${support.startdir}"/>
-
- <property file="${support.basedir}/support.properties" />
-
- <!-- Set build directories for all formats. -->
- <property name="build.dir" value="${basedir}/build"/>
-
- <!-- Support files for build process. -->
- <property name="support.dir" value="${support.basedir}/support"/>
- <property name="styles.dir" value="${support.basedir}/styles"/>
-
- <!-- Set DocBook stylesheets. -->
- <property name="db.style.fopdf" value="fopdf.xsl"/>
- <property name="db.style.html" value="html_chunk.xsl"/>
- <property name="db.style.htmlsingle" value="html.xsl"/>
-
- <property name="maxmem" value="1024m" />
-
- <xmlcatalog id="docbook.catalog">
- <catalogpath path="${support.basedir}/docbook-dtd/catalog.xml" />
- </xmlcatalog>
-
-
- <!-- Classpath for the build tools. -->
- <path id="lib.classpath">
- <fileset dir="${support.dir}/lib">
- <include name="**/*.jar"/>
- </fileset>
- <dirset dir="." />
- <fileset dir="${support.dir}/lib">
- <include name="**/*.jar"/>
- <exclude name="**/saxon1.jar"/>
- </fileset>
- </path>
-
- <property name="fop.home" value="${support.dir}/lib"/>
-
- <taskdef name="fop"
- classname="org.apache.fop.tools.anttasks.Fop">
- <classpath refid="lib.classpath">
-
- </classpath>
- </taskdef>
-
- <!-- ################################################################## -->
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang" value="en"/></antcall>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.all.bypass.check" unless="lang.all.bypass.disabled">
- <uptodate property="lang.all.bypass.on" targetfile="${build.dir}/${lang}/pdf/${pdf.name}">
- <srcfiles dir="${support.basedir}" includes="**"/>
- <srcfiles dir="${basedir}/${lang}" includes="**"/>
- <srcfiles dir="${basedir}" includes="build.xml"/>
- </uptodate>
- </target>
-
- <target name="lang.all.run" depends="lang.all.bypass.check, lang.all.bypass.message" unless="lang.all.bypass.on">
- <antcall target="clean"/>
- <antcall target="lang.all"/>
- </target>
-
- <target name="lang.all.bypass.message" if="lang.all.bypass.on">
- <echo>Already uptodate: ${build.dir}/${lang}/pdf/${pdf.name}</echo>
- <echo>add -Dlang.all.bypass.disabled=true to force a rebuild</echo>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.dochtml.bypass.check" unless="lang.dochtml.bypass.disabled">
- <uptodate property="lang.dochtml.bypass.on" targetfile="${build.dir}/${lang}/html/index.html">
- <srcfiles dir="${support.basedir}" includes="**"/>
- <srcfiles dir="${basedir}/${lang}" includes="**"/>
- <srcfiles dir="${basedir}" includes="build.xml"/>
- </uptodate>
- </target>
-
- <target name="lang.dochtml.run" depends="lang.dochtml.bypass.check, lang.dochtml.bypass.message" unless="lang.dochtml.bypass.on">
- <antcall target="clean.dochtml"/>
- <antcall target="lang.dochtml"/>
- <antcall target="lang.dochtmlsingle"/>
- </target>
-
- <target name="lang.dochtml.bypass.message" if="lang.dochtml.bypass.on">
- <echo>Already uptodate: ${build.dir}/${lang}/html/index.html</echo>
- <echo>add -Dlang.dochtml.bypass.disabled=true to force a rebuild</echo>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="clean">
- <!-- Delete build directory. -->
- <delete dir="${build.dir}"/>
- </target>
-
- <target name="clean.dochtml">
- <!-- Delete build directory for single html -->
- <delete dir="${build.dir}/${lang}/html"/>
- <delete dir="${build.dir}/${lang}/html_single"/>
- </target>
-
- <!-- ################################################################## -->
-
- <target name="lang.all">
- <antcall target="lang.docpdf"/>
- <antcall target="lang.dochtml"/>
- <antcall target="lang.dochtmlsingle"/>
- <!--
- <antcall target="lang.htmlmisc"/>
- -->
- </target>
-
- <target name="lang.docpdf">
- <!-- Copy all the images to the output location,
- will be removed later. -->
- <copy todir="${build.dir}/${lang}/pdf/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.svg"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
-
- <!-- Create the XSL/FO temporary file. -->
-
- <java classname="com.icl.saxon.StyleSheet"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="-o" />
- <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.fopdf}"/>
- </java>
-
-
-<!--
- <xslt out="${build.dir}/${lang}/pdf/docbook_fop.tmp"
- in="${basedir}/${lang}/master.xml"
- style="${styles.dir}/${lang}/${db.style.fopdf}">
- <xmlcatalog refid="docbook.catalog"/>
- </xslt>
--->
- <!--echo>${basedir}</echo-->
- <!-- Create a PDF from the XSL/FO. -->
- <java classname="org.apache.tools.ant.Main"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}" failonerror="true">
- <classpath>
- <pathelement location="${ant.core.lib}"/>
- <fileset dir="${ant.home}/lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- <arg value="fork-fop-instance"/>
- <sysproperty key="lang" value="${lang}"/>
- <sysproperty key="file-path" path="${build.dir}/${lang}/pdf"/>
- </java>
-
-<!-- <java classname="org.apache.fop.cli.Main"
- maxmemory="${maxmem}"
- fork="true" dir="${basedir}" failonerror="true">
- <classpath refid="lib.classpath"/>
- <sysproperty key="fop.home" path="${support.dir}/lib"/>
- <arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <arg value="${build.dir}/${lang}/pdf/${pdf.name}"/>
- </java>
--->
- <!-- Delete temporary files. -->
- <delete file="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
- <delete dir="${build.dir}/${lang}/pdf/images"/>
- </target>
-
- <target name="fork-fop-instance">
-
- <echo>${file-path}/docbook_fop.tmp</echo>
-
- <fop format="application/pdf"
- basedir="${file-path}"
- outfile="${file-path}/${pdf.name}"
- fofile="${file-path}/docbook_fop.tmp"
- messagelevel="debug">
-
- </fop>
- </target>
-
- <target name="lang.dochtml">
- <mkdir dir="${build.dir}/${lang}/html/"/>
-
- <!-- Copy all the images to the output location -->
- <copy todir="${build.dir}/${lang}/html/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.js"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/html/css/images">
- <fileset dir="${styles.dir}/${lang}/Images">
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
-
- <java classname="com.icl.saxon.StyleSheet"
- fork="true" dir="${build.dir}/${lang}/html">
- <classpath refid="lib.classpath"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.html}"/>
- </java>
- </target>
-
- <target name="lang.dochtmlsingle">
- <mkdir dir="${build.dir}/${lang}/html_single/"/>
-
- <!-- Copy all the images to the output location -->
- <copy todir="${build.dir}/${lang}/html_single/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- <include name="**/*.jpg"/>
- </fileset>
- </copy>
- <copy todir="${build.dir}/${lang}/html_single/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
-
-
- <copy todir="${build.dir}/${lang}/html_single/css/images">
- <fileset dir="${styles.dir}/${lang}/Images">
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/html_single">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.js"/>
- </fileset>
- </copy>
- <java classname="com.icl.saxon.StyleSheet"
- fork="true" dir="${basedir}">
- <classpath refid="lib.classpath"/>
- <arg value="-o"/>
- <arg value="${build.dir}/${lang}/html_single/index.html"/>
- <arg value="${basedir}/${lang}/master.xml"/>
- <arg value="${styles.dir}/${lang}/${db.style.htmlsingle}"/>
- </java>
- </target>
-
- <!-- I do not really like to have external dependency for HTML pages
- So, I am not using this task ... -->
- <target name="lang.htmlmisc">
- <!-- Copy images and CSS for HTML documentation, language specific. -->
- <copy todir="${build.dir}/${lang}/shared/images">
- <fileset dir="${basedir}/${lang}/images">
- <include name="**/*.png"/>
- <include name="**/*.gif"/>
- </fileset>
- </copy>
-
- <copy todir="${build.dir}/${lang}/shared/css">
- <fileset dir="${styles.dir}/${lang}">
- <include name="**/*.css"/>
- </fileset>
- </copy>
- </target>
-</project>
Deleted: trunk/jsf/docs/userguide/build.xml
===================================================================
--- trunk/jsf/docs/userguide/build.xml 2008-03-06 16:39:44 UTC (rev 6705)
+++ trunk/jsf/docs/userguide/build.xml 2008-03-06 16:43:54 UTC (rev 6706)
@@ -1,22 +0,0 @@
-<project name="Documentation" default="all.doc" basedir=".">
-
- <property name="modulename" value="jsf"></property>
- <condition property="build.dir" value="${doc-root}/${modulename}" else="${basedir}/../build/userguide">
- <isset property="doc-root"/>
- </condition>
-
- <property name="pdf.name" value="Visual_Web_Tools_Reference_Guide.pdf" />
- <import file="../resources/support.xml" />
-
- <target name="all.doc" depends="clean">
- <antcall target="lang.all"><param name="lang" value="en"/></antcall>
- </target>
-
- <!-- Use this alternate target to enable uptodate checking, i.e.
- don't generate docs if nothing has changed
- <target name="all.doc">
- <antcall target="lang.all.run"><param name="lang" value="en"/></antcall>
- </target>
- -->
-
-</project>
16 years, 3 months