JBoss Tools SVN: r4959 - in trunk/seam/plugins/org.jboss.tools.seam.core: templates/ejb and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-11-16 20:41:04 -0500 (Fri, 16 Nov 2007)
New Revision: 4959
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam2FacetInstallDelegate.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegate.java
trunk/seam/plugins/org.jboss.tools.seam.core/templates/ejb/.classpath
Log:
http://jira.jboss.org/jira/browse/JBIDE-1320
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam2FacetInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam2FacetInstallDelegate.java 2007-11-16 19:35:27 UTC (rev 4958)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/Seam2FacetInstallDelegate.java 2007-11-17 01:41:04 UTC (rev 4959)
@@ -40,7 +40,9 @@
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.util.ResourcesUtils;
import org.jboss.tools.seam.core.ISeamProject;
@@ -512,6 +514,9 @@
IProject ejbProjectToBeImported = wsRoot.getProject(project.getName()+"-ejb");
ResourcesUtils.importExistingProject(ejbProjectToBeImported, wsPath+"/"+project.getName()+"-ejb", project.getName()+"-ejb");
toggleHibernateOnProject(ejbProjectToBeImported, consoleName);
+ IProjectFacet sf = ProjectFacetsManager.getProjectFacet("jst.ejb");
+ IProjectFacetVersion pfv = ProjectFacetsManager.create(ejbProjectToBeImported).getInstalledVersion(sf);
+ ClasspathHelper.addClasspathEntries(ejbProjectToBeImported, pfv);
IProject earProjectToBeImported = wsRoot.getProject(project.getName()+"-ear");
ResourcesUtils.importExistingProject(earProjectToBeImported, wsPath+"/"+project.getName()+"-ear", project.getName()+"-ear");
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegate.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegate.java 2007-11-16 19:35:27 UTC (rev 4958)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegate.java 2007-11-17 01:41:04 UTC (rev 4959)
@@ -38,7 +38,9 @@
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.util.ResourcesUtils;
import org.jboss.tools.seam.core.ISeamProject;
@@ -503,9 +505,13 @@
IProject ejbProjectToBeImported = wsRoot.getProject(project.getName()+"-ejb");
ResourcesUtils.importExistingProject(ejbProjectToBeImported, wsPath+"/"+project.getName()+"-ejb", project.getName()+"-ejb");
toggleHibernateOnProject(ejbProjectToBeImported, consoleName);
+ IProjectFacet sf = ProjectFacetsManager.getProjectFacet("jst.ejb");
+ IProjectFacetVersion pfv = ProjectFacetsManager.create(ejbProjectToBeImported).getInstalledVersion(sf);
+ ClasspathHelper.addClasspathEntries(ejbProjectToBeImported, pfv);
IProject earProjectToBeImported = wsRoot.getProject(project.getName()+"-ear");
ResourcesUtils.importExistingProject(earProjectToBeImported, wsPath+"/"+project.getName()+"-ear", project.getName()+"-ear");
+
}
IProject testProjectToBeImported = wsRoot.getProject(project.getName()+"-test");
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/templates/ejb/.classpath
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/templates/ejb/.classpath 2007-11-16 19:35:27 UTC (rev 4958)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/templates/ejb/.classpath 2007-11-17 01:41:04 UTC (rev 4959)
@@ -2,7 +2,6 @@
<classpath>
<classpathentry kind="src" path="ejbModule"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.jboss.ide.eclipse.as.classpath.core.runtime.ProjectRuntimeInitializer/@runtimeName@"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
17 years, 1 month
JBoss Tools SVN: r4958 - trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-16 14:35:27 -0500 (Fri, 16 Nov 2007)
New Revision: 4958
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
Log:
JBIDE-1325 Much simpler solution ;)
A for loop is still needed to make sure the project name label is correct.
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2007-11-16 19:07:30 UTC (rev 4957)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2007-11-16 19:35:27 UTC (rev 4958)
@@ -2,7 +2,6 @@
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
@@ -28,6 +27,7 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
import org.eclipse.ui.ide.IDE;
+import org.jboss.ide.eclipse.archives.core.ArchivesCore;
import org.jboss.ide.eclipse.archives.core.model.ArchivesModelCore;
import org.jboss.ide.eclipse.archives.core.model.IArchiveFileSet;
import org.jboss.ide.eclipse.archives.core.model.IArchiveNode;
@@ -291,19 +291,21 @@
if (fileset.getGlobalSourcePath() != null) {
rootDir = fileset.getGlobalSourcePath();
+ rootDirIsWorkspaceRelative = fileset.isInWorkspace();
rootDirText.setText(rootDir.toString());
- rootDirIsWorkspaceRelative = fileset.isInWorkspace();
}
} else {
- rootProjectLabel.setText(parentNode.getProjectPath().lastSegment());
+ IProject[] project = ResourcesPlugin.getWorkspace().getRoot().getProjects();
+ for( int i = 0; i < project.length; i++ )
+ if( project[i].getLocation().equals(parentNode.getProjectPath()))
+ rootProjectLabel.setText(project[i].getName());
rootDirIsWorkspaceRelative = true;
rootDir = parentNode.getProjectPath();
- rootDirText.setText(rootDir.toString());
}
}
private void changePreview() {
- IPath root = rootDir; //isRootDirWorkspaceRelative() ? ResourcesPlugin.getWorkspace().getRoot().getLocation().append(rootDir) : rootDir;
+ IPath root = rootDir;
IPath paths[] = ArchivesModelCore.findMatchingPaths(root, includesText.getText(), excludesText.getText());
previewComposite.setInput(paths);
}
@@ -324,8 +326,7 @@
if (project != null) {
IPath relativePath = path.removeFirstSegments(1);
rootProjectLabel.setText(project.getName());
-
- rootDir = ResourcesPlugin.getWorkspace().getRoot().getLocation().append(path);
+ rootDir = ArchivesCore.getInstance().getVariables().getProjectPath(projectName);
if (!relativePath.isEmpty()) {
rootDirText.setText(relativePath.toString());
} else {
17 years, 1 month
JBoss Tools SVN: r4957 - trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-16 14:07:30 -0500 (Fri, 16 Nov 2007)
New Revision: 4957
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
Log:
JBIDE-1325 Much simpler solution ;)
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2007-11-16 17:54:26 UTC (rev 4956)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2007-11-16 19:07:30 UTC (rev 4957)
@@ -297,16 +297,8 @@
} else {
rootProjectLabel.setText(parentNode.getProjectPath().lastSegment());
rootDirIsWorkspaceRelative = true;
-
- // Done since the parentNode.getProjectPath() project might be *outside* the workspace. Shouldn't the parentNode have a getProject() instead ?
- IContainer[] findContainersForLocation = ResourcesPlugin.getWorkspace().getRoot().findContainersForLocation(parentNode.getProjectPath());
- for (int i = 0; i < findContainersForLocation.length; i++) {
- IContainer container = findContainersForLocation[i];
- if(container.getType()==IResource.PROJECT) {
- rootDir = container.getLocation();
- continue;
- }
- }
+ rootDir = parentNode.getProjectPath();
+ rootDirText.setText(rootDir.toString());
}
}
17 years, 1 month
JBoss Tools SVN: r4954 - in trunk/seam/docs/reference/en: images/crud_database_application and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: achabatar
Date: 2007-11-16 12:40:23 -0500 (Fri, 16 Nov 2007)
New Revision: 4954
Added:
trunk/seam/docs/reference/en/images/crud_database_application/
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_01.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_02.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_03.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_04.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_05.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_06.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_07.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_08.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_09.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_10.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_11.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_12.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_13.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_14.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_15.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_16.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_17.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_18.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_19.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_20.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_21.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_22.png
trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_23.png
Modified:
trunk/seam/docs/reference/en/modules/crud_database_application.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-312
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_01.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_01.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_02.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_02.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_03.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_03.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_04.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_04.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_05.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_05.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_06.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_06.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_07.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_07.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_08.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_08.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_09.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_09.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_10.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_10.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_11.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_11.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_12.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_12.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_13.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_13.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_14.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_14.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_15.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_15.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_16.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_16.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_17.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_17.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_18.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_18.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_19.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_19.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_20.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_20.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_21.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_21.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_22.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_22.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_23.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_database_application/crud_database_application_23.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/seam/docs/reference/en/modules/crud_database_application.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/crud_database_application.xml 2007-11-16 17:29:35 UTC (rev 4953)
+++ trunk/seam/docs/reference/en/modules/crud_database_application.xml 2007-11-16 17:40:23 UTC (rev 4954)
@@ -1,16 +1,309 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="crud_database_application" xreflabel="crud_database_application">
- <?dbhtml filename="crud_database_application.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>Red Hat Developer Studio</keyword>
- <keyword>Eclipse</keyword>
- <keyword>Java</keyword>
- <keyword>CRUD</keyword>
- <keyword>Database Application</keyword>
- </keywordset>
- </chapterinfo>
- <title>Generate a CRUD Database Application</title>
-
-</chapter>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="crud_database_application"
+ xreflabel="crud_database_application">
+ <?dbhtml filename="crud_database_application.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>Red Hat Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Java</keyword>
+ <keyword>CRUD</keyword>
+ <keyword>Database Application</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Generate a CRUD Database Application</title>
+ <section>
+ <title>What is CRUD?</title>
+ <para>
+ <property>CRUD</property>
+ ("Create, read, update and delete") are the four
+ basic functions of persistent storage, a major part of nearly
+ all computer software.
+ </para>
+ <para>
+ More information can be found on Wikipedia site:
+ <ulink url="http://en.wikipedia.org/wiki/Create,_read,_update_and_delete">
+ www.wikipedia.org</ulink>
+ </para>
+ </section>
+
+ <section>
+ <title>How to create the CRUD Database Application in Red Hat Developer Studio</title>
+
+ <itemizedlist>
+ <listitem><para>Create a new Seam Web Project using New Project wizard or main menu <emphasis><property>File > New > Seam Web Project</property>.</emphasis></para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Seam Web Project Creation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_01.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Name your project as <emphasis><property>crudapp</property></emphasis> and follow the next wizard steps keeping default settings.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>New Seam Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_02.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>On <emphasis><property>Seam Facet</property></emphasis> page click <emphasis><property>New...</property></emphasis> to create a new <property>Connection profile</property>.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Seam Facet page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_03.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>On <property>New Connection Profile</property> dialog select the <emphasis><property>PostgreSQL JDBC Connection</property></emphasis> type and click <emphasis><property>Next</property></emphasis>.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>New JDBC Connection Profile</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_04.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Name your profile as <emphasis><property>cruddb</property></emphasis> and press <emphasis><property>Next</property></emphasis>.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>New JDBC Connection Profile Name</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_05.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>On the next page click <emphasis><property>...</property></emphasis> to select a database driver.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>New JDBC Connection Profile Database Driver</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_06.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>On <property>Driver Definitions</property> dialog select the <emphasis><property>PostgreSQL->8.x</property></emphasis> and click <emphasis><property>Add...</property></emphasis>.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Driver Definitions List</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_07.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Set the location of <property>JDBC driver</property> and fill all other necessary fields (<emphasis><property>URL</property></emphasis>, <emphasis><property>Database Name</property></emphasis>, <emphasis><property>Password</property></emphasis>, <emphasis><property>User Id</property></emphasis>) and click <emphasis><property>OK</property></emphasis>.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Edit Driver Definition</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_09.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Click <emphasis><property>OK</property></emphasis> on the next dialog with newly created driver.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Driver Definitions List</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Click <emphasis><property>Test Connection</property></emphasis> on the next dialog and observe that connection can be established.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Test JDBC Connection</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <figure>
+ <title>JDBC Connection is OK</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Validate <emphasis><property>JDBC Connection profile</property></emphasis> settings and press <emphasis><property>Finish</property></emphasis> or <emphasis><property>Back</property></emphasis> if something is wrong.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Validate JDBC Connection settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Observe that newly created profile has been selected on <emphasis><property>Seam Facet</property></emphasis> page and click <emphasis><property>Finish</property></emphasis>.</para>
+ <para>This will create 2 projects - <emphasis><property>crudapp</property></emphasis> and <emphasis><property>crudapp-test</property></emphasis>.</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Last Step of New Seam Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_14.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Have a look to the created projects. You can expand <property>WEB_CONTENT</property> folder and open <property>home.xhtml</property> or <property>login.xhtml</property> with <property>JBoss Visual Editor</property>.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>CRUDAPP Seam Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_15.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Switch to <property>Database Development</property> perspective with <emphasis><property>Window->Open Perspective->Other...</property></emphasis> and connect to the <emphasis><property>cruddb</property></emphasis> database.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Connecting to the CRUDDB database</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_16.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Expand <emphasis><property>cruddb</property></emphasis> nodes to view its <emphasis><property>Schemas</property></emphasis>, <emphasis><property>Tables</property></emphasis>, <emphasis><property>Columns</property></emphasis> etc.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>CRUDDB Database</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_17.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Switch back to the <property>Seam</property> perspective. From the toolbar select <emphasis><property>New->Seam Generate Entities</property></emphasis> to create necessary entity classes and web pages.
+ In the <emphasis><property>Generete Seam Entities</property></emphasis> dialog keep everything by default and press <emphasis><property>Finish</property></emphasis>.
+ </para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Generete Seam Entities</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_18.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Under <emphasis><property>WebContent</property></emphasis> folder you can find a lot of generated <property>xhtml</property> files:</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Entities Web Pages</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_19.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>And under <emphasis><property>src</property></emphasis> folder java classes are created.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Entities Java Classes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_20.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Switch to <property>Hibernate</property> perspective with <emphasis><property>Window->Open Perspective->Other...</property></emphasis>. On <property>Hibernate Configurations</property> view expand the <emphasis><property>crudapp</property></emphasis> configuration. Right click on <property>Customers</property> and select <emphasis><property>Open Mapping Diagram</property></emphasis> from the popup menu.</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Hibernate Configurations View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_21.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>Observe that <property>Mapping Diagram</property> is opened in the editor. Here you can see the relations between models and database tables. Select <property>Customers</property> entity model, right click and select <emphasis><property>Open Source File</property></emphasis>.</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Mapping Diagram</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_22.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem>
+ <para>This will open the <property>Customers.java</property> file in the java editor.</para>
+ </listitem>
+ </itemizedlist>
+ <figure>
+ <title>Entity class from Mapping Diagram</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_database_application/crud_database_application_23.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>After that you are ready to deploy your application to J2EE application server. This is described in the next chapter.</para>
+
+ </section>
+
+</chapter>
+
17 years, 1 month
JBoss Tools SVN: r4951 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console: actions and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-11-16 12:16:23 -0500 (Fri, 16 Nov 2007)
New Revision: 4951
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/LaunchHelper.java
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/DeleteConfigurationAction.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/EditConsoleConfiguration.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConfigurationsViewActionGroup.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationCreationWizard.java
Log:
JBIDE-1326 exception creating hibernate configuration
(we deleted the configuration instead of just reset it when a launchconfiguration is changed)
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java 2007-11-16 16:13:53 UTC (rev 4950)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java 2007-11-16 17:16:23 UTC (rev 4951)
@@ -184,11 +184,7 @@
ConsoleConfiguration oldcfg = instance.find( configuration.getName() );
if(oldcfg!=null) {
oldcfg.reset(); // reset it no matter what.
-
- instance.removeConfiguration(oldcfg, true);
-
- ConsoleConfigurationPreferences adapter = buildConfigurationPreferences(configuration);
- instance.addConfiguration(new ConsoleConfiguration(adapter), true);
+
}
}
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java 2007-11-16 16:13:53 UTC (rev 4950)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/AddConfigurationAction.java 2007-11-16 17:16:23 UTC (rev 4951)
@@ -21,6 +21,8 @@
*/
package org.hibernate.eclipse.console.actions;
+import java.util.Map;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfiguration;
@@ -36,7 +38,9 @@
import org.hibernate.console.ImageConstants;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
import org.hibernate.eclipse.console.utils.EclipseImages;
+import org.hibernate.eclipse.console.utils.LaunchHelper;
import org.hibernate.eclipse.console.wizards.ConsoleConfigurationCreationWizard;
+import org.hibernate.eclipse.launch.ICodeGenerationLaunchConstants;
/**
*
@@ -68,11 +72,11 @@
try {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
- ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( "org.hibernate.eclipse.launch.ConsoleConfigurationLaunchConfigurationType" );
+ ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( ICodeGenerationLaunchConstants.CONSOLE_CONFIGURATION_LAUNCH_TYPE_ID );
String launchName = launchManager.generateUniqueLaunchConfigurationNameFrom("hibernate");
//ILaunchConfiguration[] launchConfigurations = launchManager.getLaunchConfigurations( launchConfigurationType );
ILaunchConfigurationWorkingCopy wc = launchConfigurationType.newInstance(null, launchName);
- ILaunchConfiguration saved = wc.doSave();
+ ILaunchConfiguration saved = wc.doSave();
int i = DebugUITools.openLaunchConfigurationPropertiesDialog( part.getSite().getShell(), saved, "org.eclipse.debug.ui.launchGroup.run" );
if(i!=Window.OK) {
saved.delete();
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/DeleteConfigurationAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/DeleteConfigurationAction.java 2007-11-16 16:13:53 UTC (rev 4950)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/DeleteConfigurationAction.java 2007-11-16 17:16:23 UTC (rev 4951)
@@ -25,6 +25,8 @@
import java.util.List;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.ui.IViewPart;
import org.eclipse.ui.actions.SelectionListenerAction;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.KnownConfigurations;
@@ -35,9 +37,12 @@
*/
public class DeleteConfigurationAction extends SelectionListenerAction {
- public DeleteConfigurationAction() {
+ private StructuredViewer part;
+
+ public DeleteConfigurationAction(StructuredViewer selectionProvider) {
super("Delete Configuration");
setEnabled(false);
+ this.part = selectionProvider;
}
public void run() {
@@ -48,6 +53,8 @@
ConsoleConfiguration element = (ConsoleConfiguration) iter.next();
KnownConfigurations.getInstance().removeConfiguration(element, false);
}
+
+ part.refresh();
}
protected boolean updateSelection(IStructuredSelection selection) {
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/EditConsoleConfiguration.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/EditConsoleConfiguration.java 2007-11-16 16:13:53 UTC (rev 4950)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/EditConsoleConfiguration.java 2007-11-16 17:16:23 UTC (rev 4951)
@@ -39,6 +39,7 @@
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
import org.hibernate.eclipse.console.wizards.ConsoleConfigurationCreationWizard;
+import org.hibernate.eclipse.launch.ICodeGenerationLaunchConstants;
/**
* @author max
@@ -95,14 +96,16 @@
try {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
- ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( "org.hibernate.eclipse.launch.ConsoleConfigurationLaunchConfigurationType" );
+ ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( ICodeGenerationLaunchConstants.CONSOLE_CONFIGURATION_LAUNCH_TYPE_ID );
ILaunchConfiguration[] launchConfigurations = launchManager.getLaunchConfigurations( launchConfigurationType );
for (int i = 0; i < launchConfigurations.length; i++) { // can't believe there is no look up by name API
ILaunchConfiguration launchConfiguration = launchConfigurations[i];
if(launchConfiguration.getName().equals(config.getName())) {
DebugUITools.openLaunchConfigurationPropertiesDialog( win.getShell(), launchConfiguration, "org.eclipse.debug.ui.launchGroup.run" );
+ return;
}
- }
+ }
+ HibernateConsolePlugin.getDefault().showError(win.getShell(), "Could not find launch configuration for '" + config.getName() + "'", new IllegalStateException("No launch configuration matched the configuration named " + config.getName()));
} catch (CoreException ce) {
HibernateConsolePlugin.getDefault().showError( win.getShell(), "Problem adding a console configuration", ce);
}
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/LaunchHelper.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/LaunchHelper.java (rev 0)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/LaunchHelper.java 2007-11-16 17:16:23 UTC (rev 4951)
@@ -0,0 +1,35 @@
+package org.hibernate.eclipse.console.utils;
+
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.debug.core.DebugPlugin;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.ILaunchConfigurationType;
+import org.eclipse.debug.core.ILaunchManager;
+
+public class LaunchHelper {
+
+ static public ILaunchConfiguration findLaunchConfigurationByName(String launchConfigurationTypeId, String name) throws CoreException {
+ Assert.isNotNull(launchConfigurationTypeId, "Launch configuration type cannot be null");
+ ILaunchManager launchManager = DebugPlugin.getDefault()
+ .getLaunchManager();
+
+
+ ILaunchConfigurationType launchConfigurationType = launchManager
+ .getLaunchConfigurationType(launchConfigurationTypeId);
+
+ ILaunchConfiguration[] launchConfigurations = launchManager
+ .getLaunchConfigurations(launchConfigurationType);
+
+ for (int i = 0; i < launchConfigurations.length; i++) { // can't believe
+ // there is no
+ // look up by
+ // name API
+ ILaunchConfiguration launchConfiguration = launchConfigurations[i];
+ if (launchConfiguration.getName().equals(name)) {
+ return launchConfiguration;
+ }
+ }
+ return null;
+ }
+}
\ No newline at end of file
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java 2007-11-16 16:13:53 UTC (rev 4950)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/ProjectUtils.java 2007-11-16 17:16:23 UTC (rev 4951)
@@ -43,6 +43,7 @@
import org.eclipse.ui.IFileEditorInput;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
+import org.hibernate.eclipse.launch.ICodeGenerationLaunchConstants;
import org.hibernate.eclipse.launch.IConsoleConfigurationLaunchConstants;
import org.hibernate.util.StringHelper;
import org.osgi.service.prefs.BackingStoreException;
@@ -174,7 +175,7 @@
IJavaProject proj = null;
if (consoleConfiguration != null) {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
- ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( "org.hibernate.eclipse.launch.ConsoleConfigurationLaunchConfigurationType" );
+ ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( ICodeGenerationLaunchConstants.CONSOLE_CONFIGURATION_LAUNCH_TYPE_ID );
ILaunchConfiguration[] launchConfigurations;
try {
launchConfigurations = launchManager.getLaunchConfigurations( launchConfigurationType );
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConfigurationsViewActionGroup.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConfigurationsViewActionGroup.java 2007-11-16 16:13:53 UTC (rev 4950)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConfigurationsViewActionGroup.java 2007-11-16 17:16:23 UTC (rev 4951)
@@ -59,7 +59,7 @@
this.selectionProvider = selectionProvider;
addConfigurationAction = new AddConfigurationAction(part);
- deleteConfigurationAction = new DeleteConfigurationAction();
+ deleteConfigurationAction = new DeleteConfigurationAction(selectionProvider);
selectionProvider.addSelectionChangedListener(deleteConfigurationAction);
IActionBars actionBars= part.getViewSite().getActionBars();
actionBars.setGlobalActionHandler(
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationCreationWizard.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationCreationWizard.java 2007-11-16 16:13:53 UTC (rev 4950)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationCreationWizard.java 2007-11-16 17:16:23 UTC (rev 4951)
@@ -61,6 +61,7 @@
import org.hibernate.eclipse.console.HibernateConsolePlugin;
import org.hibernate.eclipse.console.utils.EclipseImages;
import org.hibernate.eclipse.console.utils.ProjectUtils;
+import org.hibernate.eclipse.launch.ICodeGenerationLaunchConstants;
import org.hibernate.eclipse.launch.IConsoleConfigurationLaunchConstants;
import org.hibernate.eclipse.nature.HibernateNature;
import org.hibernate.util.StringHelper;
@@ -162,7 +163,7 @@
}
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
- ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( "org.hibernate.eclipse.launch.ConsoleConfigurationLaunchConfigurationType" );
+ ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType( ICodeGenerationLaunchConstants.CONSOLE_CONFIGURATION_LAUNCH_TYPE_ID );
String launchName = launchManager.generateUniqueLaunchConfigurationNameFrom(configName);
ILaunchConfigurationWorkingCopy wc = launchConfigurationType.newInstance(null, launchName);
wc.setAttribute( IConsoleConfigurationLaunchConstants.CONFIGURATION_FACTORY, cmode.toString());
17 years, 1 month
JBoss Tools SVN: r4950 - in trunk/seam/docs/reference/en: images and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-11-16 11:13:53 -0500 (Fri, 16 Nov 2007)
New Revision: 4950
Added:
trunk/seam/docs/reference/en/images/create_new_seam/
trunk/seam/docs/reference/en/images/create_new_seam/create_seam1.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam10.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam2.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam3.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam4.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam5.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam6.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam7.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam8.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam9.png
trunk/seam/docs/reference/en/modules/creating_new_seam.xml
trunk/seam/docs/reference/en/modules/generate_entities.xml
trunk/seam/docs/reference/en/modules/intro.xml
trunk/seam/docs/reference/en/modules/seam_wizards.xml
Modified:
trunk/seam/docs/reference/en/master.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-289 Guide structure and draft chapter has been added
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam1.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam10.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam10.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam2.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam3.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam4.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam5.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam6.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam7.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam8.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam9.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/seam/docs/reference/en/master.xml
===================================================================
--- trunk/seam/docs/reference/en/master.xml 2007-11-16 15:25:08 UTC (rev 4949)
+++ trunk/seam/docs/reference/en/master.xml 2007-11-16 16:13:53 UTC (rev 4950)
@@ -3,7 +3,11 @@
"../../resources/support/docbook-dtd/docbookx.dtd"
-[<!ENTITY crud_database_application SYSTEM "modules/crud_database_application.xml">
+[<!ENTITY intro SYSTEM "modules/intro.xml">
+<!ENTITY creating_new_seam SYSTEM "modules/creating_new_seam.xml">
+<!ENTITY seam_wizards SYSTEM "modules/seam_wizards.xml">
+<!ENTITY generate_entities SYSTEM "modules/generate_entities.xml">
+<!ENTITY crud_database_application SYSTEM "modules/crud_database_application.xml">
<!ENTITY crud_application_walkthrough SYSTEM "modules/crud_application_walkthrough.xml">
<!ENTITY business_application SYSTEM "modules/business_application.xml">
<!ENTITY testng SYSTEM "modules/testng.xml">
@@ -25,7 +29,10 @@
<toc/>
-
+&intro;
+&creating_new_seam;
+&seam_wizards;
+&generate_entities;
&crud_database_application;
&crud_application_walkthrough;
&testng;
Added: trunk/seam/docs/reference/en/modules/creating_new_seam.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/creating_new_seam.xml (rev 0)
+++ trunk/seam/docs/reference/en/modules/creating_new_seam.xml 2007-11-16 16:13:53 UTC (rev 4950)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="create_seam" xreflabel="create_seam">
+ <?dbhtml filename="create_new_seam.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>Seam</keyword>
+ <keyword>RHDS</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Creating a New Seam Project</title>
+ <para>To start working with Seam select a Seam perspective via <emphasis><property>Window > Open Perspective > Other > Seam</property></emphasis>.
+ Select <emphasis><property>File > New > Seam Web Project</property></emphasis> to run the <property>New Seam Project</property> wizard.</para>
+
+ <figure>
+ <title>New Seam Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You are able to enter a name and a location directory for your new project. Next wizard's options allows you create runtime and server instances in order
+ to get started creating, running, and debugging J2EE applications.</para>
+ <para>Click on <property>New...</property> button in the Target Runtime section.</para>
+
+ <figure>
+ <title>New Server Runtime Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>From this dialog you can choose what type of runtime you want to create. Let's create a JBoss 4.2 Runtime. Click on next.</para>
+
+ <figure>
+ <title>New Server Runtime Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>All what you need here is to name runtime, browse to it's install directory, select a Java Runtime Environment, and select which configuration you want. Click on Finish.</para>
+ <para>Now you should define an installed server by clicking on <property>New...</property> button in the Target section.</para>
+
+ <figure>
+ <title>New Server Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You are able to select a server version and a server runtime. Use <property>Installed Runtimes</property> button to see or edit what runtimes are installed. Click on Next</para>
+
+ <figure>
+ <title>New Server Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Leave everything as is and click on next.</para>
+
+ <figure>
+ <title>New Server Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the last wizard's step you can modify your project to configure it on server.</para>
+ <para>After clicking on Finish button you shoud have the folowing wizard view:</para>
+
+ <figure>
+ <title>New Seam Project Creation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the <property>Configurations</property> section you can select a configuration for Seam. Click on Next.</para>
+
+ <figure>
+ <title>Project Facets Selection</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>This page of the wizard allows you to enable or disable specific facets.</para>
+
+ <figure>
+ <title>Web Module Settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>A dynamic web application contains both web pages and Java code. The wizard will ask you where you want to put those files. You can just leave the default values.</para>
+
+ <figure>
+ <title>Adding JSF Capabilities to Web Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Check <emphasis><property>Server Supplied JSF Implementation</property>.</emphasis></para>
+ <para>The next wizard step is related to Seam facet.</para>
+
+ <figure>
+ <title>Seam Facet</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In this wizard step you shoud do the folowing:</para>
+ <itemizedlist>
+ <listitem><para>Create Seam runtime and define Seam home folder</para></listitem>
+ <listitem><para>Select EAR or WAR deployment</para></listitem>
+ <listitem><para>Create your Connection profile</para></listitem>
+ </itemizedlist>
+
+
+ </chapter>
Added: trunk/seam/docs/reference/en/modules/generate_entities.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/generate_entities.xml (rev 0)
+++ trunk/seam/docs/reference/en/modules/generate_entities.xml 2007-11-16 16:13:53 UTC (rev 4950)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="generate_entities" xreflabel="generate_entities">
+ <?dbhtml filename="generate_entities.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>Seam</keyword>
+ <keyword>RHDS</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Seam Generate Entities</title>
+
+ </chapter>
Added: trunk/seam/docs/reference/en/modules/intro.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/intro.xml (rev 0)
+++ trunk/seam/docs/reference/en/modules/intro.xml 2007-11-16 16:13:53 UTC (rev 4950)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="intro" xreflabel="intro">
+ <?dbhtml filename="intro.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>Seam</keyword>
+ <keyword>RHDS</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Introduction</title>
+
+ </chapter>
Added: trunk/seam/docs/reference/en/modules/seam_wizards.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/seam_wizards.xml (rev 0)
+++ trunk/seam/docs/reference/en/modules/seam_wizards.xml 2007-11-16 16:13:53 UTC (rev 4950)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="seam_wizards" xreflabel="seam_wizards">
+ <?dbhtml filename="seam_wizards.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>Seam</keyword>
+ <keyword>RHDS</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Seam Wizards</title>
+
+ <section id="seam_action">
+ <title>New Seam Action</title>
+
+ </section>
+ <section id="seam_form">
+ <title>New Seam Form</title>
+
+ </section>
+ <section id="seam_entity">
+ <title>New Seam Entity</title>
+
+ </section>
+ <section id="seam_conversation">
+ <title>New Seam Conversation</title>
+ </section>
+ </chapter>
17 years, 1 month
JBoss Tools SVN: r4949 - in trunk/seam/docs/reference/en: images/crud_application_walkthrough and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2007-11-16 10:25:08 -0500 (Fri, 16 Nov 2007)
New Revision: 4949
Added:
trunk/seam/docs/reference/en/images/crud_application_walkthrough/
trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_1.png
trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_2.png
trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_3.png
trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_4.png
trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_5.png
trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_6.png
trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_7.png
Modified:
trunk/seam/docs/reference/en/modules/crud_application_walkthrough.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-312
Added: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_1.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_2.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_3.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_4.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_5.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_6.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_6.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_7.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/crud_application_walkthrough/crud_application_walkthrough_7.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Modified: trunk/seam/docs/reference/en/modules/crud_application_walkthrough.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/crud_application_walkthrough.xml 2007-11-16 15:08:50 UTC (rev 4948)
+++ trunk/seam/docs/reference/en/modules/crud_application_walkthrough.xml 2007-11-16 15:25:08 UTC (rev 4949)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="crud_application_walkthrough" xreflabel="crud_application_walkthrough">
- <?dbhtml filename="crud_application_walkthrough.html"?>
+<?dbhtml filename="crud_application_walkthrough.html"?>
<chapterinfo>
<keywordset>
<keyword>Red Hat Developer Studio</keyword>
@@ -11,6 +11,101 @@
</keywordset>
</chapterinfo>
<title>The CRUD Application Walkthrough</title>
-
+ <section>
+ <title>Deploy the CRUD Application</title>
+ <para>To deploy your CRUD Application you should do the following steps:</para>
+ <itemizedlist>
+ <listitem><para>Start JBoss Application Server. </para></listitem>
+ </itemizedlist>
+
+ <para>On<emphasis><property> JBossServer View </property></emphasis> right click on the <emphasis><property>JBoss Application Server</property></emphasis> and select
+ <emphasis><property> Run </property></emphasis></para>
+
+ <figure>
+ <title>Start the Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_application_walkthrough/crud_application_walkthrough_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Deploy Data Source descriptor to the server. </para></listitem>
+ </itemizedlist>
+
+ <para>To do this on <emphasis><property>Package Explorer View </property></emphasis> right click on the file <property>crudapp-ds.xml</property> and select
+ <emphasis><property> Deployy to Server </property></emphasis></para>
+
+ <figure>
+ <title>Deploy Data Source descriptor to the Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_application_walkthrough/crud_application_walkthrough_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <itemizedlist>
+ <listitem><para>Run project on the Server. </para></listitem>
+ </itemizedlist>
+
+ <para>On <emphasis><property>Package Explorer View </property></emphasis> right click on the <emphasis><property>crudapp</property></emphasis> project, select
+ <emphasis><property> Run As > Run on Server</property>.</emphasis></para>
+
+ <figure>
+ <title>Run Project on Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_application_walkthrough/crud_application_walkthrough_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Select a Server in the wizard <emphasis><property>Run on Server </property></emphasis> and click <property>Next</property></para>
+
+ <figure>
+ <title>Select a Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_application_walkthrough/crud_application_walkthrough_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Observe that <emphasis><property>crudapp</property></emphasis> project and file <emphasis><property>crudapp-ds.xml</property></emphasis> appeared among configured projects.</para>
+
+ <figure>
+ <title>Configured Projects</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_application_walkthrough/crud_application_walkthrough_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click <property>Finish</property>.</para>
+
+ <para>Home page of the <emphasis><property>crudapp</property></emphasis> project should appeared in <emphasis><property>Web Browser</property></emphasis>.</para>
+ <figure>
+ <title>Home page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_application_walkthrough/crud_application_walkthrough_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Also you can use your external Web Browser with the same link as in internal Web Browser.</para>
+ <para>Click, for example, on the <emphasis><property>Employees List</property></emphasis> link and observe that data from DataBase <emphasis><property>employee</property></emphasis> selected.</para>
+ <figure>
+ <title>Employees List</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/crud_application_walkthrough/crud_application_walkthrough_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para> Follow different links and observe how project works.</para>
+ </section>
</chapter>
17 years, 1 month
JBoss Tools SVN: r4948 - trunk/documentation/guides/userguide/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: sabrashevich
Date: 2007-11-16 10:08:50 -0500 (Fri, 16 Nov 2007)
New Revision: 4948
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-137 change in seam chapter about connection profile
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2007-11-16 14:59:24 UTC (rev 4947)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2007-11-16 15:08:50 UTC (rev 4948)
@@ -63,7 +63,6 @@
</figure>
- <para>We will use a default pre-configured HSQLDB connection provided by RHDS.</para>
<para>In the next screen, you will be able to select where those library JARs come from. The easiest is just to select the JARs provided by the JBoss AS runtime associated with this project. That is why it is important to chose the right JBoss AS 4.2 runtime in the project setup window.</para>
<orderedlist continuation="continues">
<listitem><para>Check <emphasis><property>Server Supplied JSF Implementation</property></emphasis>. We will use JSF implementation that comes with JBoss server</para></listitem>
17 years, 1 month
JBoss Tools SVN: r4947 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2007-11-16 09:59:24 -0500 (Fri, 16 Nov 2007)
New Revision: 4947
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/TypeInfoCollector.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1308 Disable "unresolved EL" for GA ?
Validation bug in methods filtering is fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java 2007-11-16 13:42:30 UTC (rev 4946)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/SeamELCompletionEngine.java 2007-11-16 14:59:24 UTC (rev 4947)
@@ -531,6 +531,9 @@
for (String proposal : proposalsToFilter) {
// We do expect nothing but name for method tokens (No round brackets)
String filter = token.getText();
+ if (filter.indexOf('(') != -1) {
+ filter = filter.substring(0, filter.indexOf('('));
+ }
if(returnEqualedVariablesOnly) {
// This is used for validation.
if (proposal.equals(filter)) {
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/TypeInfoCollector.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/TypeInfoCollector.java 2007-11-16 13:42:30 UTC (rev 4946)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/el/TypeInfoCollector.java 2007-11-16 14:59:24 UTC (rev 4947)
@@ -579,14 +579,13 @@
String[] parameterTypes = method.getParameterTypeQualifiedNames();
boolean equal = true;
- for (int i = 0; parameterTypes != null && i < parameterTypes.length; i++) {
+ for (int i = 0; equal && parameterTypes != null && i < parameterTypes.length; i++) {
// simple types must be equal, but complex types may not
if (!parameterTypes[i].equals(methodParameterTypes[i])) {
// sure - it's Complex Type
- if (! (parameterTypes[i].indexOf('.') != -1)
+ if ((parameterTypes[i].indexOf('.') != -1)
&& (methodParameterTypes[i].indexOf('.') == -1)) {
equal = false;
- break;
}
}
}
17 years, 1 month