JBoss Tools SVN: r4979 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-19 15:35:39 -0500 (Mon, 19 Nov 2007)
New Revision: 4979
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishUtil.java
Log:
JBIDE-1338
added a mkdirs() if the folder is not created.
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishUtil.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishUtil.java 2007-11-19 19:31:32 UTC (rev 4978)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishUtil.java 2007-11-19 20:35:39 UTC (rev 4979)
@@ -775,6 +775,9 @@
String path =
ServerAttributeHelper.createHelper(server)
.getAttribute(IDeployableServer.TEMP_DEPLOY_DIRECTORY, tempDir.getAbsolutePath());
+ File f = new File(path);
+ if( !f.exists() )
+ f.mkdirs();
return new File(path);
}
}
\ No newline at end of file
17 years, 1 month
JBoss Tools SVN: r4978 - in trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards: pages and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-19 14:31:32 -0500 (Mon, 19 Nov 2007)
New Revision: 4978
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/FilesetWizard.java
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java
Log:
JBIDE-1325 -hopefully fixed. I swear.
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/FilesetWizard.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/FilesetWizard.java 2007-11-19 19:19:20 UTC (rev 4977)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/FilesetWizard.java 2007-11-19 19:31:32 UTC (rev 4978)
@@ -58,11 +58,10 @@
fileset.setExcludesPattern(page1.getExcludes());
fileset.setIncludesPattern(page1.getIncludes());
if( page1.isRootDirWorkspaceRelative()) {
- int workspaceLength = ResourcesPlugin.getWorkspace().getRoot().getLocation().toOSString().length();
- fileset.setSourcePath(new Path(page1.getRootDir().substring(workspaceLength)));
+ fileset.setSourcePath(new Path(page1.getWorkspaceRelativeRootDir()));
fileset.setInWorkspace(true);
} else {
- fileset.setSourcePath(new Path(page1.getRootDir()));
+ fileset.setSourcePath(new Path(page1.getAbsoluteRootDir()));
fileset.setInWorkspace(false);
}
}
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-19 19:19:20 UTC (rev 4977)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/wizards/pages/FilesetInfoWizardPage.java 2007-11-19 19:31:32 UTC (rev 4978)
@@ -44,7 +44,7 @@
private Text excludesText;
private ArchiveNodeDestinationComposite destinationComposite;
- private String includes, excludes;
+ private String includes, excludes, workspaceRelativeRootDir;
/**
* This variable must at all times be global. ALWAYS
@@ -204,11 +204,6 @@
excludesKey.setLayoutData(createFormData(includesText,5,null,0,null,5,0,max));
excludesText.setLayoutData(createFormData(includesText,5,null,0,excludesKey,10,100,-5));
-
-
-
-
-
// customize widgets
destinationKey.setText(ArchivesUIMessages.FilesetInfoWizardPage_destination_label);
rootProjectKey.setText(ArchivesUIMessages.FilesetInfoWizardPage_rootProject_label);
@@ -270,9 +265,13 @@
return excludes;
}
- public String getRootDir () {
+ public String getAbsoluteRootDir () {
return rootDir.toOSString();
}
+
+ public String getWorkspaceRelativeRootDir() {
+ return workspaceRelativeRootDir;
+ }
public boolean isRootDirWorkspaceRelative () {
return rootDirIsWorkspaceRelative;
@@ -291,6 +290,7 @@
if (fileset.getGlobalSourcePath() != null) {
rootDir = fileset.getGlobalSourcePath();
+ workspaceRelativeRootDir = fileset.getSourcePath().toString();
rootDirIsWorkspaceRelative = fileset.isInWorkspace();
rootDirText.setText(rootDir.toString());
}
@@ -301,6 +301,7 @@
rootProjectLabel.setText(project[i].getName());
rootDirIsWorkspaceRelative = true;
rootDir = parentNode.getProjectPath();
+ workspaceRelativeRootDir = "";
}
}
@@ -324,11 +325,12 @@
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
if (project != null) {
- IPath relativePath = path.removeFirstSegments(1);
+ IPath projectRelativePath = path.removeFirstSegments(1);
rootProjectLabel.setText(project.getName());
- rootDir = ArchivesCore.getInstance().getVariables().getProjectPath(projectName);
- if (!relativePath.isEmpty()) {
- rootDirText.setText(relativePath.toString());
+ rootDir = ArchivesCore.getInstance().getVariables().getProjectPath(projectName).append(projectRelativePath);
+ workspaceRelativeRootDir = path.toString();
+ if (!projectRelativePath.isEmpty()) {
+ rootDirText.setText(projectRelativePath.toString());
} else {
rootDirText.setText("");
}
@@ -349,6 +351,7 @@
if (path != null && path.length() > 0) {
rootDirText.setText(path);
rootDir = new Path(path);
+ workspaceRelativeRootDir = null;
rootDirIsWorkspaceRelative = false;
rootProjectLabel.setText(ArchivesUIMessages.FilesetInfoWizardPage_noProjectMessage);
changePreview();
17 years, 1 month
JBoss Tools SVN: r4977 - in trunk/hibernatetools/plugins/org.hibernate.eclipse: META-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-11-19 14:19:20 -0500 (Mon, 19 Nov 2007)
New Revision: 4977
Added:
trunk/hibernatetools/plugins/org.hibernate.eclipse/lib/hibernate/log4j-1.2.15.jar
Removed:
trunk/hibernatetools/plugins/org.hibernate.eclipse/lib/hibernate/log4j-1.2.11.jar
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/.classpath
trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.hibernate.eclipse/build.properties
Log:
HBX-1015 workaround for log4j issue by upgrading to latest.
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/.classpath
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/.classpath 2007-11-19 18:19:16 UTC (rev 4976)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/.classpath 2007-11-19 19:19:20 UTC (rev 4977)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
+ <classpathentry exported="true" kind="lib" path="lib/hibernate/log4j-1.2.15.jar"/>
<classpathentry exported="true" kind="lib" path="lib/annotations/hibernate-search.jar"/>
<classpathentry exported="true" kind="lib" path="lib/annotations/lucene-core-2.2.0.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/asm.jar"/>
@@ -18,7 +19,6 @@
<classpathentry exported="true" kind="lib" path="lib/hibernate/jdbc2_0-stdext.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/jta.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/jaas.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/hibernate/log4j-1.2.11.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/oscache-2.1.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/proxool-0.8.3.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/swarmcache-1.0rc2.jar"/>
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF 2007-11-19 18:19:16 UTC (rev 4976)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF 2007-11-19 19:19:20 UTC (rev 4977)
@@ -19,7 +19,6 @@
lib/hibernate/jdbc2_0-stdext.jar,
lib/hibernate/jta.jar,
lib/hibernate/jaas.jar,
- lib/hibernate/log4j-1.2.11.jar,
lib/hibernate/oscache-2.1.jar,
lib/hibernate/proxool-0.8.3.jar,
lib/hibernate/swarmcache-1.0rc2.jar,
@@ -40,7 +39,8 @@
lib/annotations/hibernate-commons-annotations.jar,
lib/annotations/hibernate-validator.jar,
lib/annotations/hibernate-search.jar,
- lib/annotations/lucene-core-2.2.0.jar
+ lib/annotations/lucene-core-2.2.0.jar,
+ lib/hibernate/log4j-1.2.15.jar
Bundle-Activator: org.hibernate.eclipse.HibernatePlugin
Bundle-Vendor: Hibernate Team
Bundle-Localization: plugin
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/build.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/build.properties 2007-11-19 18:19:16 UTC (rev 4976)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/build.properties 2007-11-19 19:19:20 UTC (rev 4977)
@@ -13,7 +13,8 @@
lib/annotations/hibernate-commons-annotations.jar,\
lib/annotations/hibernate-validator.jar,\
lib/annotations/hibernate-search.jar,\
- lib/annotations/lucene-core-2.2.0.jar
+ lib/annotations/lucene-core-2.2.0.jar,\
+ lib/hibernate/log4j-1.2.15.jar
jars.compile.order = org.hibernate.eclipse.jar
source.org.hibernate.eclipse.jar = src/
output.org.hibernate.eclipse.jar = bin/
Deleted: trunk/hibernatetools/plugins/org.hibernate.eclipse/lib/hibernate/log4j-1.2.11.jar
===================================================================
(Binary files differ)
Added: trunk/hibernatetools/plugins/org.hibernate.eclipse/lib/hibernate/log4j-1.2.15.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/plugins/org.hibernate.eclipse/lib/hibernate/log4j-1.2.15.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 1 month
JBoss Tools SVN: r4976 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-19 13:19:16 -0500 (Mon, 19 Nov 2007)
New Revision: 4976
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java
Log:
JBIDE-1325 - null checks?
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java 2007-11-19 17:31:15 UTC (rev 4975)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/ModelUtil.java 2007-11-19 18:19:16 UTC (rev 4976)
@@ -204,8 +204,9 @@
public static IPath workspacePathToAbsolutePath (IPath workspacePath) {
String projectName = workspacePath.segment(0);
+ if( projectName == null ) return null;
IPath projectPath = ArchivesCore.getInstance().getVariables().getProjectPath(projectName);
-
+ if( projectPath == null ) return null;
return projectPath.append(workspacePath.removeFirstSegments(1));
}
}
17 years, 1 month
JBoss Tools SVN: r4975 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-11-19 12:31:15 -0500 (Mon, 19 Nov 2007)
New Revision: 4975
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidatorManager.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1334
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidatorManager.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidatorManager.java 2007-11-19 16:57:55 UTC (rev 4974)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidatorManager.java 2007-11-19 17:31:15 UTC (rev 4975)
@@ -48,6 +48,9 @@
public IStatus validateInJob(IValidationContext helper, IReporter reporter) throws ValidationException {
SeamValidationHelper coreHelper = (SeamValidationHelper)helper;
ISeamProject project = coreHelper.getSeamProject();
+ if(project==null) {
+ return OK_STATUS;
+ }
SeamValidationContext validationContext = ((SeamProject)project).getValidationContext();
IStatus status = null;
try {
17 years, 1 month
JBoss Tools SVN: r4974 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-19 11:57:55 -0500 (Mon, 19 Nov 2007)
New Revision: 4974
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java
Log:
JBIDE-1324 view not listening
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java 2007-11-19 16:57:52 UTC (rev 4973)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/ArchivesModel.java 2007-11-19 16:57:55 UTC (rev 4974)
@@ -256,8 +256,10 @@
} else {
// file not found, just create some default xbpackages and insert them
XbPackages packages = new XbPackages();
+ ArchiveModelNode root2 = new ArchiveModelNode(project, packages, this);
xbPackages.put(project, packages);
- archivesRoot.put(project, new ArchiveModelNode(project, packages, this));
+ archivesRoot.put(project, root2);
+ fireRegisterProjectEvent(null, root2);
}
}
17 years, 1 month
JBoss Tools SVN: r4973 - trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-19 11:57:52 -0500 (Mon, 19 Nov 2007)
New Revision: 4973
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java
Log:
JBIDE-1324 view not listening
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java 2007-11-19 15:55:50 UTC (rev 4972)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java 2007-11-19 16:57:52 UTC (rev 4973)
@@ -314,19 +314,17 @@
// we have a changed IArchiveModelNode. Something's different
IArchiveModelNode inputModel = (IArchiveModelNode) packageViewer.getInput();
IArchiveModelNode newModel = (IArchiveModelNode)topChanges[0];
- if( inputModel != null ) {
- if( inputModel.getProjectPath().equals(newModel.getProjectPath()) && inputModel != newModel ) {
- // they have the same path but are different objects.
- // Model was probably reloaded from disk and could be completely different
- packageViewer.setInput(newModel);
- packageViewer.expandAll();
- return;
- } else {
- packageViewer.refresh();
- return;
- }
- }
- book.showPage(viewerComposite);
+ if( inputModel == null || (inputModel.getProjectPath().equals(newModel.getProjectPath()) && inputModel != newModel)) {
+ // they have the same path but are different objects.
+ // Model was probably reloaded from disk and could be completely different
+ book.showPage(viewerComposite);
+ packageViewer.setInput(newModel);
+ packageViewer.expandAll();
+ return;
+ } else {
+ packageViewer.refresh();
+ return;
+ }
} else {
// just refresh whatever is the top changed element (archive probably)
packageViewer.refresh(topChanges[i]);
17 years, 1 month
JBoss Tools SVN: r4972 - in trunk/seam/docs/reference/en: images and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-11-19 10:55:50 -0500 (Mon, 19 Nov 2007)
New Revision: 4972
Added:
trunk/seam/docs/reference/en/images/create_new_seam/create_seam11.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam12.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam13.png
trunk/seam/docs/reference/en/images/create_new_seam/create_seam8_1.png
trunk/seam/docs/reference/en/images/create_new_seam/tmp.png
trunk/seam/docs/reference/en/images/directory_structure/
trunk/seam/docs/reference/en/modules/directory_structure.xml
Modified:
trunk/seam/docs/reference/en/images/create_new_seam/create_seam1.png
trunk/seam/docs/reference/en/master.xml
trunk/seam/docs/reference/en/modules/creating_new_seam.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-289 Guide structure update.More info and scrrenshot are added.
Modified: trunk/seam/docs/reference/en/images/create_new_seam/create_seam1.png
===================================================================
(Binary files differ)
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam11.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam12.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam13.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam13.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/create_seam8_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/create_seam8_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/create_new_seam/tmp.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/create_new_seam/tmp.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-19 15:51:19 UTC (rev 4971)
+++ trunk/seam/docs/reference/en/master.xml 2007-11-19 15:55:50 UTC (rev 4972)
@@ -5,6 +5,7 @@
[<!ENTITY intro SYSTEM "modules/intro.xml">
<!ENTITY creating_new_seam SYSTEM "modules/creating_new_seam.xml">
+<!ENTITY directory_structure SYSTEM "modules/directory_structure.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">
@@ -31,6 +32,7 @@
&intro;
&creating_new_seam;
+&directory_structure;
&seam_wizards;
&generate_entities;
&crud_database_application;
Modified: trunk/seam/docs/reference/en/modules/creating_new_seam.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/creating_new_seam.xml 2007-11-19 15:51:19 UTC (rev 4971)
+++ trunk/seam/docs/reference/en/modules/creating_new_seam.xml 2007-11-19 15:55:50 UTC (rev 4972)
@@ -8,10 +8,16 @@
<keyword>RHDS</keyword>
</keywordset>
</chapterinfo>
- <title>Creating a New Seam Project</title>
+ <title>Creating a New Seam Project via the New Seam Project wizard</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>
+ <section id="standaloneSeam">
+ <title>Create standalone Seam Web Project</title>
+
+ <para>You are able to enter a name and a location directory for your new project. Next wizard's sections allows you create runtime and server instances in order
+ to get started creating, running, and debugging J2EE applications.</para>
+
<figure>
<title>New Seam Project Wizard</title>
<mediaobject>
@@ -21,9 +27,9 @@
</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>
+
+ <para>Click on <emphasis><property>New...</property></emphasis> button in the Target Runtime section.</para>
+ <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>
@@ -34,7 +40,7 @@
</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>
+ <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>
<figure>
<title>New Server Runtime Dialog</title>
@@ -44,10 +50,10 @@
</imageobject>
</mediaobject>
</figure>
+
+ <para>Now you should define an installed server by clicking on <emphasis><property>New...</property></emphasis> button in the Target section.
+ You are able to select a server version and a server runtime. Use <emphasis><property>Installed Runtimes</property></emphasis> button to see or edit what runtimes are installed. Click on Next</para>
- <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>
@@ -56,9 +62,9 @@
</imageobject>
</mediaobject>
</figure>
+
+ <para>Leave everything as is and click on next.</para>
- <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>
@@ -68,7 +74,7 @@
</mediaobject>
</figure>
- <para>Leave everything as is and click on next.</para>
+ <para>On the last wizard's step you can modify your project to configure it on server.</para>
<figure>
<title>New Server Dialog</title>
@@ -79,7 +85,7 @@
</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>
@@ -90,10 +96,16 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>In the <property>Configurations</property> section you can select a configuration for Seam. Click on Next.</para>
-
- <figure>
+
+ <para>The last section on this wizard step is <property>Configurations</property>. You can select one of the pre-defined project configuration or create your own. Click on <emphasis><property>Next</property>.</emphasis></para>
+
+ </section>
+ <section id="projectFacets">
+ <title>Select the Project Facets</title>
+
+ <para>This page of the wizard allows you to enable or disable specific facets. You can save or delete your preset of selected facets clicking on <emphasis><property>Save</property></emphasis> button.</para>
+
+ <figure>
<title>Project Facets Selection</title>
<mediaobject>
<imageobject>
@@ -102,46 +114,91 @@
</mediaobject>
</figure>
- <para>This page of the wizard allows you to enable or disable specific facets.</para>
+ <para>You can also see all available runtimes after clicking on <emphasis><property>Show Runtimes</property></emphasis> or create the new ones using the <emphasis><property>New</property></emphasis> button.</para>
- <figure>
- <title>Web Module Settings</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/create_new_seam/create_seam9.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Project Facets Selection</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam8_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
- <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>
+ <section id="configureWebModule">
+ <title>Configure Web Module Settings</title>
+
+ <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>Web Module Settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ </section>
+ <section id="addJSFCapab">
+ <title>Adding JSF Capabilities</title>
+
+ <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> and click on <emphasis><property>Next</property>.</emphasis></para>
+
+ </section>
+ <section id="seamFacet">
+ <title>Configure Seam Facet Settings</title>
+
+ <figure>
+ <title>Seam Facet Settings</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>This wizard step is related to Seam facet and allows you to do the following:</para>
+ <itemizedlist>
+ <listitem><para>Create Seam runtime and define Seam home folder. Click on <emphasis><property>Add</property></emphasis> button in the <property>General</property> section.</para></listitem>
+ </itemizedlist>
+
<figure>
- <title>Adding JSF Capabilities to Web Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/create_new_seam/create_seam10.png"/>
- </imageobject>
- </mediaobject>
+ <title>Seam Runtime Creation</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam12.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>
-
-
+
+ <itemizedlist>
+ <listitem><para>Select EAR or WAR deployment by checking the necessary combo box.</para></listitem>
+ <listitem><para>Select the <emphasis><property>Database Type</property></emphasis> and create a <emphasis><property>Connection profile</property>.</emphasis>
+ Click on <emphasis><property>New</property></emphasis> button and select the necessary connection profile.</para></listitem>
+ </itemizedlist>
+
+ <figure>
+ <title>Connection Prodile Selecting</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/create_new_seam/create_seam13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+</section>
</chapter>
Added: trunk/seam/docs/reference/en/modules/directory_structure.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/directory_structure.xml (rev 0)
+++ trunk/seam/docs/reference/en/modules/directory_structure.xml 2007-11-19 15:55:50 UTC (rev 4972)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="directory_str" xreflabel="directory_str">
+ <?dbhtml filename="directory_structure.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>Seam</keyword>
+ <keyword>Eclispe</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Directory Structure of the Generated Project</title>
+
+ <para>In this chapter we describe where the Seam wizard put the generated files for both EAR and WAR deployments.</para>
+
+ <section id="EAR">
+ <title>EAR Deployment</title>
+ </section>
+
+ <section id="WAR">
+ <title>WAR Deployment</title>
+ </section>
+
+ </chapter>
17 years, 1 month
JBoss Tools SVN: r4971 - in trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam: internal/core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-11-19 10:51:19 -0500 (Mon, 19 Nov 2007)
New Revision: 4971
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaComponentDeclaration.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
Log:
JBIDE-1333
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java 2007-11-19 11:55:52 UTC (rev 4970)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamProject.java 2007-11-19 15:51:19 UTC (rev 4971)
@@ -152,6 +152,10 @@
*/
public Set<ISeamContextVariable> getVariables(boolean includeShortNames);
+ public void addVariable(ISeamContextVariable v);
+
+ public void removeVariable(ISeamContextVariable v);
+
/**
* @param name
* @return all seam variables by name from all contexts
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaComponentDeclaration.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaComponentDeclaration.java 2007-11-19 11:55:52 UTC (rev 4970)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaComponentDeclaration.java 2007-11-19 15:51:19 UTC (rev 4971)
@@ -231,7 +231,7 @@
bijectedAttributes.add(loaded);
ISeamProject p = getSeamProject();
if(p != null && loaded.isContextVariable()) {
- p.getVariables().add(loaded);
+ p.addVariable(loaded);
}
Change change = new Change(this, null, null, loaded);
children.addChildren(Change.addChange(null, change));
@@ -243,8 +243,8 @@
if(wasOut != isOut) {
ISeamProject p = getSeamProject();
if(p != null) {
- if(wasOut) p.getVariables().remove(current);
- if(isOut) p.getVariables().add(current);
+ if(wasOut) p.removeVariable(current);
+ if(isOut) p.addVariable(current);
}
}
}
@@ -253,7 +253,7 @@
for (BijectedAttribute r: bijectedMap.values()) {
bijectedAttributes.remove(r);
ISeamProject p = getSeamProject();
- if(p != null) p.getVariables().remove(r);
+ if(p != null) p.removeVariable(r);
Change change = new Change(this, null, r, null);
children.addChildren(Change.addChange(null, change));
}
@@ -272,7 +272,7 @@
adopt(loaded);
roles.add(loaded);
ISeamProject p = getSeamProject();
- if(p != null) p.getVariables().add(loaded);
+ if(p != null) p.addVariable(loaded);
Change change = new Change(this, null, null, loaded);
children.addChildren(Change.addChange(null, change));
} else {
@@ -284,7 +284,7 @@
for (Role r: roleMap.values()) {
roles.remove(r);
ISeamProject p = getSeamProject();
- if(p != null) p.getVariables().remove(r);
+ if(p != null) p.removeVariable(r);
Change change = new Change(this, null, r, null);
children.addChildren(Change.addChange(null, change));
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2007-11-19 11:55:52 UTC (rev 4970)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2007-11-19 15:51:19 UTC (rev 4971)
@@ -49,7 +49,6 @@
import org.jboss.tools.seam.core.ScopeType;
import org.jboss.tools.seam.core.SeamCoreBuilder;
import org.jboss.tools.seam.core.SeamCorePlugin;
-import org.jboss.tools.seam.core.SeamPreferences;
import org.jboss.tools.seam.core.event.Change;
import org.jboss.tools.seam.core.event.ISeamProjectChangeListener;
import org.jboss.tools.seam.core.event.SeamProjectChangeEvent;
@@ -102,7 +101,10 @@
protected Set<ISeamFactory> allFactories = new HashSet<ISeamFactory>();
Set<ISeamContextVariable> allVariables = new HashSet<ISeamContextVariable>();
-
+
+ Set<ISeamContextVariable> allVariablesCopy = null;
+ Set<ISeamContextVariable> allVariablesPlusShort = null;
+
Map<String, SeamJavaComponentDeclaration> javaDeclarations = new HashMap<String, SeamJavaComponentDeclaration>();
Map<String, ISeamPackage> packages = new HashMap<String, ISeamPackage>();
@@ -572,9 +574,9 @@
revalidateLock++;
if(ds.getImports().size() > 0) {
- imports.put(source.toString(), ds.getImports());
- } else if(imports.containsKey(source.toString())) {
- imports.remove(source.toString());
+ setImports(source.toString(), ds.getImports());
+ } else {
+ removeImports(source.toString());
}
Map<Object,ISeamComponentDeclaration> currentComponents = findComponentDeclarations(source);
@@ -624,7 +626,7 @@
ScopeType scopeType = loaded.getScope();
c = newComponent(name, scopeType);
allComponents.put(name, c);
- allVariables.add(c);
+ addVariable(c);
c.addDeclaration(loaded);
addedComponents = Change.addChange(addedComponents, new Change(this, null, null, c));
} else if(c != null) {
@@ -636,7 +638,7 @@
if(loaded instanceof ISeamJavaComponentDeclaration) {
SeamJavaComponentDeclaration jd = (SeamJavaComponentDeclaration)loaded;
javaDeclarations.put(jd.getClassName(), jd);
- allVariables.addAll(jd.getDeclaredVariables());
+ for (ISeamContextVariable v: jd.getDeclaredVariables()) addVariable(v);
Set<ISeamComponent> cs = getComponentsByClass(jd.getClassName());
for (ISeamComponent ci: cs) {
if(ci == c) continue;
@@ -671,7 +673,7 @@
adopt(factories[i]);
}
allFactories.add(factories[i]);
- allVariables.add(factories[i]);
+ addVariable(factories[i]);
addedFactories = Change.addChange(addedFactories, new Change(this, null, null, loaded));
}
fireChanges(addedFactories);
@@ -762,7 +764,7 @@
public void pathRemoved(IPath source) {
if(!sourcePaths.contains(source)) return;
sourcePaths.remove(source);
- imports.remove(source.toString());
+ removeImports(source.toString());
revalidateLock++;
Iterator<SeamComponent> iterator = allComponents.values().iterator();
while(iterator.hasNext()) {
@@ -776,7 +778,7 @@
SeamJavaComponentDeclaration jd = (SeamJavaComponentDeclaration)ds[i];
String className = jd.getClassName();
javaDeclarations.remove(className);
- allVariables.removeAll(jd.getDeclaredVariables());
+ for (ISeamContextVariable v: jd.getDeclaredVariables()) removeVariable(v);
}
changes = Change.addChange(changes, new Change(c, null, ds[i], null));
}
@@ -796,9 +798,8 @@
if(source.equals(f.getSourcePath())) {
List<Change> changes = Change.addChange(null, new Change(this, null, f, null));
factories.remove();
- allVariables.remove(f);
+ removeVariable(f);
fireChanges(changes);
-// System.out.println("Factory removed 1 " + f.getName());
}
}
@@ -844,7 +845,7 @@
if(javaDeclarations.get(className) == jd) {
javaDeclarations.remove(className);
}
- allVariables.removeAll(jd.getDeclaredVariables());
+ for (ISeamContextVariable v: jd.getDeclaredVariables()) removeVariable(v);
}
}
@@ -877,7 +878,7 @@
((SeamScope)p).removeComponent(c);
changes = Change.addChange(null, new Change(p, null, c, null));
}
- allVariables.remove(c);
+ removeVariable(c);
changes = Change.addChange(changes, new Change(this, null, c, null));
return changes;
}
@@ -918,8 +919,7 @@
AbstractContextVariable c = (AbstractContextVariable)iterator.next();
if(removed.containsKey(c.getId())) {
iterator.remove();
- allVariables.remove(c);
-// System.out.println("Factory removed 2 " + c.getName());
+ removeVariable(c);
changes = Change.addChange(changes, new Change(this, null, c, null));
}
}
@@ -977,26 +977,73 @@
* @see org.jboss.tools.seam.core.ISeamProject#getVariables()
*/
public Set<ISeamContextVariable> getVariables() {
- return allVariables;
+ Set<ISeamContextVariable> vs = allVariablesCopy;
+ if(vs == null) {
+ synchronized(this) {
+ allVariablesCopy = new HashSet<ISeamContextVariable>();
+ allVariablesCopy.addAll(allVariables);
+ vs = allVariablesCopy;
+ }
+ }
+ return vs;
}
+
+ public synchronized void addVariable(ISeamContextVariable v) {
+ allVariablesCopy = null;
+ allVariablesPlusShort = null;
+ allVariables.add(v);
+ }
+ public synchronized void removeVariable(ISeamContextVariable v) {
+ allVariablesCopy = null;
+ allVariablesPlusShort = null;
+ allVariables.remove(v);
+ }
+
+ public synchronized void setImports(String source, List<String> paths) {
+ if(equalLists(imports.get(source), paths)) return;
+ allVariablesPlusShort = null;
+ imports.put(source, paths);
+ }
+
+ private boolean equalLists(List<String> s1, List<String> s2) {
+ if(s1 == null || s2 == null) return s1 == s2;
+ if(s1.size() != s2.size()) return false;
+ for (int i = 0; i < s1.size(); i++) {
+ if(!s1.get(i).equals(s2.get(i))) return false;
+ }
+ return true;
+ }
+
+ public synchronized void removeImports(String source) {
+ if(!imports.containsKey(source)) return;
+ allVariablesPlusShort = null;
+ imports.remove(source);
+ }
+
/**
* @see org.jboss.tools.seam.core.ISeamProject#getVariables()
*/
public Set<ISeamContextVariable> getVariables(boolean includeShortNames) {
+ Set<ISeamContextVariable> vs = getVariables();
if(!includeShortNames) {
- return allVariables;
+ return vs;
}
- Set<ISeamContextVariable> result = new HashSet<ISeamContextVariable>();
- result.addAll(allVariables);
- for (ISeamContextVariable v: allVariables) {
- String n = v.getName();
- int i = n.lastIndexOf('.');
- if(i < 0) continue;
- String packageName = n.substring(0, i);
- if(isImportedPackage(packageName)) {
- result.add(new SeamContextShortVariable(v));
+ Set<ISeamContextVariable> result = allVariablesPlusShort;
+ if(result != null) return result;
+ synchronized (this) {
+ result = new HashSet<ISeamContextVariable>();
+ result.addAll(vs);
+ for (ISeamContextVariable v: vs) {
+ String n = v.getName();
+ int i = n.lastIndexOf('.');
+ if(i < 0) continue;
+ String packageName = n.substring(0, i);
+ if(isImportedPackage(packageName)) {
+ result.add(new SeamContextShortVariable(v));
+ }
}
+ allVariablesPlusShort = result;
}
return result;
}
@@ -1134,8 +1181,7 @@
*/
public void removeFactory(ISeamFactory factory) {
allFactories.remove(factory);
-// System.out.println("Factory removed 3 " + factory.getName());
- allVariables.remove(factory);
+ removeVariable(factory);
}
/**
17 years, 1 month
JBoss Tools SVN: r4970 - trunk/as/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2007-11-19 06:55:52 -0500 (Mon, 19 Nov 2007)
New Revision: 4970
Modified:
trunk/as/docs/reference/en/modules/modules.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-297 Deploying modules chapter is updated
Modified: trunk/as/docs/reference/en/modules/modules.xml
===================================================================
--- trunk/as/docs/reference/en/modules/modules.xml 2007-11-19 11:50:22 UTC (rev 4969)
+++ trunk/as/docs/reference/en/modules/modules.xml 2007-11-19 11:55:52 UTC (rev 4970)
@@ -22,7 +22,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>Click <emphasis><propery>Next</propery></emphasis> button to see add or remove projects page where you can choose propjects to configure them on server.</para>
+ <para>Click <emphasis><property>Next</property></emphasis> button to see add or remove projects page where you can choose propjects to configure them on server.</para>
<figure>
<title>Add or Remove Projects</title>
<mediaobject>
17 years, 1 month