JBoss Tools SVN: r5001 - in trunk/documentation/guides/userguide/GettingStartedGuide/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-11-21 05:57:09 -0500 (Wed, 21 Nov 2007)
New Revision: 5001
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/images/first_seam/first_seam_2.png
trunk/documentation/guides/userguide/GettingStartedGuide/en/images/first_seam/first_seam_2_a.png
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-319 mention about Java persistence(JPA) has been removed.
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/images/first_seam/first_seam_2.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/images/first_seam/first_seam_2_a.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2007-11-21 09:55:10 UTC (rev 5000)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2007-11-21 10:57:09 UTC (rev 5001)
@@ -31,7 +31,7 @@
</mediaobject>
</figure>
- <para>Next, you will be asked to select the "features" you want to use in your project. This allows Red Hat Developer Studio to setup the appropriate tooling for your project. Since JBoss Seam integrates all popular Java EE frameworks, you can select any combination of technologies from the list. Here, for this project, we will select Dynamic Web Module, Java, Java Persistence (JPA), JavaServer Faces (JSF), and Seam Facet for a typical database-driven web application. </para>
+ <para>Next, you will be asked to select the "features" you want to use in your project. This allows Red Hat Developer Studio to setup the appropriate tooling for your project. Since JBoss Seam integrates all popular Java EE frameworks, you can select any combination of technologies from the list. Here, for this project, we will select Dynamic Web Module, Java, JavaServer Faces (JSF), and Seam Facet for a typical database-driven web application. </para>
<figure>
<title>Select Toolings for the Project</title>
17 years, 1 month
JBoss Tools SVN: r5000 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-11-21 04:55:10 -0500 (Wed, 21 Nov 2007)
New Revision: 5000
Modified:
trunk/jsf/docs/userguide/en/modules/rhds.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-130 - adding Subscription section
Modified: trunk/jsf/docs/userguide/en/modules/rhds.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/rhds.xml 2007-11-21 09:40:38 UTC (rev 4999)
+++ trunk/jsf/docs/userguide/en/modules/rhds.xml 2007-11-21 09:55:10 UTC (rev 5000)
@@ -1,32 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="rhds" xreflabel="rhds">
<?dbhtml filename="rhds.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>Red Hat Developer Studio</keyword>
- <keyword>RHDS</keyword>
- <keyword>Java</keyword>
- </keywordset>
- </chapterinfo>
-
- <title>About the Red Hat Developer Studio</title>
- <para><property>Red Hat Developer Studio</property> is a result of strategic partnership of Exadel and Red Hat to open
- sourcing the main Exadel's product.</para>
- <para>Red Hat Developer Studio, earlier known as Exadel Studio Pro, now is completely available in open
- source.</para>
- <section id="TheLeadingOpenSourceIDEForBuildingRichApplications">
- <?dbhtml filename="TheLeadingOpenSourceIDEForBuildingRichApplications.html"?>
- <title>The Leading Open Source IDE for Building Rich Applications</title>
- <para><property>Red Hat Developer Studio</property> is a set of plug-ins for the Eclipse IDE. It extends the Eclipse platform
- to be an advanced enterprise-level Web application development environment for leveraging open source,
- JEE and AJAX technologies. By combining visual and source-oriented development approaches with support
- for multiple open source technologies, including JSF, Hibernate, Seam, MyFaces, Spring and others.</para>
- <para>Red Hat Developer Studio enables developers to work easily with many different technologies all within one
- environment. Red Hat Developer Studio provides an extensive collection of specialized wizards, editors
- and views all of which have been constantly expanding to meet the needs of enterprise developers to keep
- pace with rapidly changing business environments and technologies.</para>
- </section>
-
+ <chapterinfo>
+ <keywordset>
+ <keyword>Red Hat Developer Studio</keyword>
+ <keyword>RHDS</keyword>
+ <keyword>Java</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>About the Red Hat Developer Studio</title>
+ <para><property>Red Hat Developer Studio</property> is a result of strategic partnership of Exadel
+ and Red Hat to open sourcing the main Exadel's product.</para>
+ <para>Red Hat Developer Studio, earlier known as Exadel Studio Pro, now is completely available in
+ open source.</para>
+ <section id="TheLeadingOpenSourceIDEForBuildingRichApplications">
+ <?dbhtml filename="TheLeadingOpenSourceIDEForBuildingRichApplications.html"?>
+ <title>The Leading Open Source IDE for Building Rich Applications</title>
+ <para><property>Red Hat Developer Studio</property> is a set of plug-ins for the Eclipse IDE. It
+ extends the Eclipse platform to be an advanced enterprise-level Web application development
+ environment for leveraging open source, JEE and AJAX technologies. By combining visual and
+ source-oriented development approaches with support for multiple open source technologies,
+ including JSF, Hibernate, Seam, MyFaces, Spring and others.</para>
+ <para>Red Hat Developer Studio enables developers to work easily with many different technologies
+ all within one environment. Red Hat Developer Studio provides an extensive collection of
+ specialized wizards, editors and views all of which have been constantly expanding to meet the
+ needs of enterprise developers to keep pace with rapidly changing business environments and
+ technologies.</para>
+ </section>
+
<!-- <section id="Feature_List">
<title>Red Hat Developer Studio Feature List</title>
<para>Based on Eclipse 3.2</para>
@@ -151,11 +153,37 @@
<para>Add new tag libraries to the tag palette with a simple drag-and-drop from the Web Projects view <link linkend="AddingTagLibraries">learn more</link></para>
</section>-->
+ <section id="Subscription">
+
+ <title>Subscriptions</title>
+ <para>Purchasing a subscription to <ulink url="http://www.redhat.com/developers/rhds/index.html"
+ >Red Hat Developer Studio</ulink> provides you access to <ulink url="https://rhn.redhat.com">Red
+ Hat Network</ulink>, as well as access to and updates for Red Hat Enterprise Linux, JBoss
+ Enterprise Application Platform, and integrated Eclipse Tooling.</para>
+ <para>If you require developer support or additional <property>Red Hat/JBoss software</property>
+ for development purposes, you may additionally purchase Red Hat Developer subscriptions. There
+ are two developer support offerings: </para>
+ <itemizedlist>
+ <listitem><para><property>Red Hat Developer Professional</property> for corporate developers and individuals</para></listitem>
+ <listitem><para><property>Red Hat Developer Enterprise</property> for Independent Software Vendors</para></listitem>
+</itemizedlist>
+
+ <para><ulink
+ url="http://www.redhat.com/developers/subscriptions.html">Here</ulink> you can get all required information about the Red Hat Developer subscriptions. </para>
+ <para>If you have questions <ulink
+ url="http://www.redhat.com/about/contact/dir/#custservice">contact us by web or phone</ulink>.
+ </para>
+ </section>
+
<section id="OtherRelevantResourcesOnTheTopic38">
<?dbhtml filename="OtherRelevantResourcesOnTheTopic38.html"?>
<title>Other relevant resources on the topic</title>
- <para>RHDS on JBoss: <ulink url="http://labs.jboss.com/rhdevstudio/">Red Hat Developer Studio</ulink></para>
- <para>Forum: <ulink url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=258">JBoss Forum</ulink></para>
- <para>Download: <ulink url="http://www.redhat.com/developers/rhds/index.html">RHDS Download</ulink></para>
+ <para>RHDS on JBoss: <ulink url="http://labs.jboss.com/rhdevstudio/">Red Hat Developer
+ Studio</ulink></para>
+ <para>Forum: <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=258">JBoss
+ Forum</ulink></para>
+ <para>Download: <ulink url="http://www.redhat.com/developers/rhds/index.html">RHDS
+ Download</ulink></para>
</section>
- </chapter>
+</chapter>
17 years, 1 month
JBoss Tools SVN: r4999 - trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-11-21 04:40:38 -0500 (Wed, 21 Nov 2007)
New Revision: 4999
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_5.png
trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_6.png
trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_7.png
trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_8.png
trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_9.png
Log:
http://jira.jboss.com/jira/browse/RHDS-185 - replacing an old screenshot to new one
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_5.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_6.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_7.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_8.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/images/getting_started/getting_started_9.png
===================================================================
(Binary files differ)
17 years, 1 month
JBoss Tools SVN: r4998 - trunk/seam/plugins/org.jboss.tools.seam.core.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-11-20 21:40:43 -0500 (Tue, 20 Nov 2007)
New Revision: 4998
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
Log:
http://jira.jboss.org/jira/browse/JBIDE-1320
lock to JBoss AS runtime is removed from plugin.xml,
werification for selected Deployment type is added. If selected runtime have not supported EJB 3.0 and EAR 5.0 modules errori showed on seam facet wizard page title.
It was verified on JBoss AS and Tomcat servers
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2007-11-21 02:40:40 UTC (rev 4997)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2007-11-21 02:40:43 UTC (rev 4998)
@@ -207,15 +207,10 @@
</extension>
<extension
point="org.eclipse.wst.common.project.facet.core.runtimes">
- <supported>
- <runtime-component
- id="org.jboss.ide.eclipse.as.runtime.component"
- version="4.0">
+ <supported>
+ <runtime-component
+ any="true">
</runtime-component>
- <runtime-component
- id="org.jboss.ide.eclipse.as.runtime.component"
- version="4.2">
- </runtime-component>
<facet
id="jst.seam"
version="[1.2">
17 years, 1 month
JBoss Tools SVN: r4997 - in trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui: internal/project/facet and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-11-20 21:40:40 -0500 (Tue, 20 Nov 2007)
New Revision: 4997
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
Log:
http://jira.jboss.org/jira/browse/JBIDE-1320
lock to JBoss AS runtime is removed from plugin.xml,
werification for selected Deployment type is added. If selected runtime have not supported EJB 3.0 and EAR 5.0 modules errori showed on seam facet wizard page title.
It was verified on JBoss AS and Tomcat servers
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2007-11-21 01:01:12 UTC (rev 4996)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2007-11-21 02:40:40 UTC (rev 4997)
@@ -115,6 +115,8 @@
public static String SEAM_INSTALL_WIZARD_PAGE_ADD;
+ public static String SEAM_INSTALL_WIZARD_PAGE_CANNOT_USE_SELECTED_DEPLOYMENT6;
+
public static String SEAM_INSTALL_WIZARD_PAGE_CODE_GENERATION;
public static String SEAM_INSTALL_WIZARD_PAGE_CONFIGURE_SEAM_FACET_SETTINGS;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2007-11-21 01:01:12 UTC (rev 4996)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/SeamInstallWizardPage.java 2007-11-21 02:40:40 UTC (rev 4997)
@@ -33,6 +33,7 @@
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.jst.j2ee.project.facet.IJ2EEModuleFacetInstallDataModelProperties;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -41,10 +42,16 @@
import org.eclipse.swt.widgets.Group;
import org.eclipse.ui.internal.dialogs.PropertyDialog;
import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
+import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
import org.eclipse.wst.common.frameworks.datamodel.DataModelEvent;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.frameworks.datamodel.IDataModelListener;
import org.eclipse.wst.common.frameworks.internal.operations.ProjectCreationDataModelProviderNew;
+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.eclipse.wst.common.project.facet.core.runtime.IRuntime;
+import org.eclipse.wst.common.project.facet.core.runtime.RuntimeManager;
import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage;
import org.eclipse.wst.common.project.facet.ui.IFacetWizardPage;
import org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard;
@@ -382,6 +389,11 @@
IFacetDataModelProperties.FACET_PROJECT_NAME,
new ProjectNamesDuplicationValidator(
IFacetDataModelProperties.FACET_PROJECT_NAME));
+ validatorDelegate.addValidatorForProperty(
+ ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS,
+ new DeploymentTypeValidator(
+ ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS,
+ ((NewProjectDataModelFacetWizard)getWizard()).getDataModel()));
}
jBossHibernateDbTypeEditor
@@ -541,7 +553,7 @@
if (visible) {
ITaggedFieldEditor runtimesField = (ITaggedFieldEditor)((CompositeEditor)jBossSeamHomeEditor).getEditors().get(1);
Object oldValue = runtimesField.getValue();
- Object newValue = "";
+ Object newValue = ""; //$NON-NLS-1$
List<String> runtimes = getRuntimeNames(model.getProperty(IFacetDataModelProperties.FACET_VERSION_STR).toString());
if(oldValue==null || !runtimes.contains(oldValue)) {
Object defaultRnt = getSeamRuntimeDefaultValue();
@@ -612,12 +624,10 @@
*/
public Map<String, String> validate(Object value, Object context) {
final String projectName = (String)value;
-
- IDataModel model = (IDataModel)context;
final String deployAs = model.getStringProperty(
ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS);
- final String testProjectName = projectName + "-test";
+ final String testProjectName = projectName + "-test"; //$NON-NLS-1$
IStatus status = ProjectCreationDataModelProviderNew.validateName(testProjectName);
if (!status.isOK())
return ValidatorFactory.createErrormessage(propertyName,
@@ -626,7 +636,7 @@
SeamUIMessages.VALIDATOR_FACTORY_PROJECT_ALREADY_EXISTS);
if (ISeamFacetDataModelProperties.DEPLOY_AS_EAR.equals(deployAs)) {
- final String earProjectName = projectName + "-ear";
+ final String earProjectName = projectName + "-ear"; //$NON-NLS-1$
status = ProjectCreationDataModelProviderNew.validateName(earProjectName);
if (!status.isOK())
return ValidatorFactory.createErrormessage(propertyName,
@@ -634,7 +644,7 @@
earProjectName +
SeamUIMessages.VALIDATOR_FACTORY_PROJECT_ALREADY_EXISTS);
- final String ejbProjectName = projectName + "-ejb";
+ final String ejbProjectName = projectName + "-ejb"; //$NON-NLS-1$
status = ProjectCreationDataModelProviderNew.validateName(ejbProjectName);
if (!status.isOK())
return ValidatorFactory.createErrormessage(propertyName,
@@ -646,6 +656,46 @@
}
}
+ static class DeploymentTypeValidator implements IValidator {
+
+ String propertyName;
+
+ IDataModel model;
+
+ static final IProjectFacet EJB_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EJB_MODULE);
+
+ static final IProjectFacetVersion EJB_30 = EJB_FACET.getVersion("3.0"); //$NON-NLS-1$
+
+ static final IProjectFacet EAR_FACET = ProjectFacetsManager.getProjectFacet(IModuleConstants.JST_EAR_MODULE);
+
+ static final IProjectFacetVersion EAR_50 = EAR_FACET.getVersion("5.0"); //$NON-NLS-1$
+
+ /**
+ */
+ public DeploymentTypeValidator (String propertyName, IDataModel model) {
+ this.propertyName = propertyName;
+ this.model = model;
+ }
+
+ /**
+ * @see IValidator#validate(Object, Object)
+ */
+ public Map<String, String> validate(Object value, Object context) {
+
+ final String deploymentType = value.toString();
+ if(!ISeamFacetDataModelProperties.DEPLOY_AS_WAR.equals(deploymentType)) {
+ String runtimeName = model.getProperty(ISeamFacetDataModelProperties.JBOSS_AS_TARGET_RUNTIME).toString();
+ IRuntime rt = RuntimeManager.getRuntime(runtimeName);
+ if(!rt.supports(EJB_30) || !rt.supports(EAR_50)) {
+ return ValidatorFactory.createErrormessage(
+ propertyName,
+ NLS.bind(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_CANNOT_USE_SELECTED_DEPLOYMENT6 , new String[]{deploymentType.toUpperCase(),runtimeName}));
+ }
+ }
+ return ValidatorFactory.NO_ERRORS;
+ }
+ }
+
public class NewSeamRuntimeAction extends
ButtonFieldEditor.ButtonPressedAction {
/**
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2007-11-21 01:01:12 UTC (rev 4996)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2007-11-21 02:40:40 UTC (rev 4997)
@@ -8,6 +8,7 @@
GENERATE_SEAM_ENTITIES_WIZARD_REVERSE_ENGINEER_LABEL = Reverse engineer from database
GENERATE_SEAM_ENTITIES_WIZARD_EXISTING_ENTITIES_LABEL = Use existing entities
SEAM_INSTALL_WIZARD_PAGE_CONFIGURE_SEAM_FACET_SETTINGS=Configure Seam Facet Settings
+SEAM_INSTALL_WIZARD_PAGE_CANNOT_USE_SELECTED_DEPLOYMENT6=''{0}'' deployment cannot be used, because selected Server Runtime ''{1}'' doesn't support EJB 3.0 and EAR 5.0 modules
SEAM_PROJECT_WIZARD_PAGE1_FILE_NAME_MUST_BE_SPECIFIED=File name must be specified
SEAM_PROJECT_SELECTION_DIALOG_SELECT_SEAM_WEB_PROJECT=Select Seam Web Project
SEAM_PROJECT_WIZARD_CREATE_STANDALONE_SEAM_WEB_PROJECT=Create standalone Seam Web Project
17 years, 1 month
JBoss Tools SVN: r4996 - trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-20 20:01:12 -0500 (Tue, 20 Nov 2007)
New Revision: 4996
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java
Log:
JBIDE-1339 - Found the offending code. w00t
Modified: trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java
===================================================================
--- trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java 2007-11-21 00:54:55 UTC (rev 4995)
+++ trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/eclipse/org/jboss/ide/eclipse/archives/core/model/other/internal/WorkspacePreferenceManager.java 2007-11-21 01:01:12 UTC (rev 4996)
@@ -21,6 +21,7 @@
*/
package org.jboss.ide.eclipse.archives.core.model.other.internal;
+import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -49,11 +50,15 @@
private static IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
private static IResource getResource(IPath path) {
- if( path != null && workspaceRoot.getLocation().isPrefixOf(path) ) {
- String relative = path.toOSString().substring(workspaceRoot.getLocation().toOSString().length()+1);
- return workspaceRoot.getProject(relative);
+ if( path != null ) {
+ IProject[] projects = workspaceRoot.getProjects();
+ if( projects != null ) {
+ for( int i = 0; i < projects.length; i++ ) {
+ if( projects[i].getLocation().equals(path))
+ return projects[i];
+ }
+ }
}
-
return null;
}
17 years, 1 month
JBoss Tools SVN: r4995 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-20 19:54:55 -0500 (Tue, 20 Nov 2007)
New Revision: 4995
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java
Log:
JBIDE-1301 - forgot to remove print statements.
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java 2007-11-20 20:25:17 UTC (rev 4994)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java 2007-11-21 00:54:55 UTC (rev 4995)
@@ -81,7 +81,6 @@
serverToCategories = new HashMap<String, ArrayList<XPathCategory>>();
ServerCore.addServerLifecycleListener(new IServerLifecycleListener() {
public void serverAdded(IServer server) {
- System.out.println("server added");
final ServerAttributeHelper helper = new ServerAttributeHelper(server, server.createWorkingCopy());
if( !helper.getAttribute(DEFAULTS_SET, false)) {
final IServer server2 = server;
@@ -104,10 +103,8 @@
}
}
public void serverChanged(IServer server) {
- System.out.println("server changed");
}
public void serverRemoved(IServer server) {
- System.out.println("server removed");
}
});
}
17 years, 1 month
JBoss Tools SVN: r4994 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-11-20 15:25:17 -0500 (Tue, 20 Nov 2007)
New Revision: 4994
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java
Log:
JBIDE-1301 - sets a property to check if xpath info already set. Launches as job.
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java 2007-11-20 19:31:23 UTC (rev 4993)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java 2007-11-20 20:25:17 UTC (rev 4994)
@@ -32,10 +32,12 @@
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.core.IServerLifecycleListener;
import org.eclipse.wst.server.core.ServerCore;
@@ -50,6 +52,7 @@
*
*/
public class XPathModel {
+
public static final String EMPTY_STRING = "org.jboss.ide.eclipse.as.core.model.descriptor.EmptyString";
public static final String PORTS_CATEGORY_NAME = "Ports";
private static final String DELIMITER = ",";
@@ -59,6 +62,7 @@
"org.jboss.ide.eclipse.as.core.model.descriptor.QueryList";
private static final String QUERY =
"org.jboss.ide.eclipse.as.core.model.descriptor.Query";
+ private static final String DEFAULTS_SET = "org.jboss.ide.eclipse.as.core.model.descriptor.DefaultsSet";
/* Singleton */
private static XPathModel instance;
@@ -77,18 +81,33 @@
serverToCategories = new HashMap<String, ArrayList<XPathCategory>>();
ServerCore.addServerLifecycleListener(new IServerLifecycleListener() {
public void serverAdded(IServer server) {
- AbstractJBossServerRuntime ajbsr = (AbstractJBossServerRuntime)
- server.getRuntime().loadAdapter(AbstractJBossServerRuntime.class, null);
- if(ajbsr != null ) {
- IPath loc = server.getRuntime().getLocation();
- IPath configFolder = loc.append("server").append(ajbsr.getJBossConfiguration());
- loadDefaults(server, configFolder.toOSString());
- save(server);
+ System.out.println("server added");
+ final ServerAttributeHelper helper = new ServerAttributeHelper(server, server.createWorkingCopy());
+ if( !helper.getAttribute(DEFAULTS_SET, false)) {
+ final IServer server2 = server;
+ new Job("Add Server XPath Details") {
+ protected IStatus run(IProgressMonitor monitor) {
+ AbstractJBossServerRuntime ajbsr = (AbstractJBossServerRuntime)
+ server2.getRuntime().loadAdapter(AbstractJBossServerRuntime.class, null);
+ if(ajbsr != null ) {
+ IPath loc = server2.getRuntime().getLocation();
+ IPath configFolder = loc.append("server").append(ajbsr.getJBossConfiguration());
+ loadDefaults(server2, configFolder.toOSString());
+ helper.setAttribute(DEFAULTS_SET, true);
+ helper.save();
+ save(server2);
+ }
+ return Status.OK_STATUS;
+ }
+
+ }.schedule();
}
}
public void serverChanged(IServer server) {
+ System.out.println("server changed");
}
public void serverRemoved(IServer server) {
+ System.out.println("server removed");
}
});
}
17 years, 1 month
JBoss Tools SVN: r4993 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-11-20 14:31:23 -0500 (Tue, 20 Nov 2007)
New Revision: 4993
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java
Log:
fixed broken initial selection of seam projects in case the selction were a not the seam root/parent project (e.g. the test project)
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java 2007-11-20 18:29:13 UTC (rev 4992)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamWizardUtils.java 2007-11-20 19:31:23 UTC (rev 4993)
@@ -13,6 +13,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.internal.ui.viewsupport.IViewPartInputProvider;
@@ -55,16 +56,24 @@
if (seamProject == null) {
return "";
}
- if("".equals(SeamCorePlugin.getSeamPreferences(project).get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS, ""))) {
- return "";
- }
+
String parentProjectName = seamProject.getParentProjectName();
+
+ IProject targetProject = null;
if (parentProjectName == null) {
- return project.getName();
+ targetProject = ResourcesPlugin.getWorkspace().getRoot().getProject(project.getName());
} else {
- return parentProjectName;
+ targetProject = ResourcesPlugin.getWorkspace().getRoot().getProject(parentProjectName);
}
+
+ if(targetProject.exists()) {
+ if("".equals(SeamCorePlugin.getSeamPreferences(targetProject).get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS, ""))) {
+ return "";
+ } else {
+ return targetProject.getName();
+ }
+ }
}
return "";
}
17 years, 1 month
JBoss Tools SVN: r4992 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-11-20 13:29:13 -0500 (Tue, 20 Nov 2007)
New Revision: 4992
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java
Log:
JBIDE-1336 Seam generate entities based on existing should not overwrite entities.
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java 2007-11-20 17:33:58 UTC (rev 4991)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java 2007-11-20 18:29:13 UTC (rev 4992)
@@ -111,8 +111,10 @@
// Create exporters
// TODO Add others exporters
List<String> exporters = new ArrayList<String>();
-
- exporters.add("hbmtemplate0"); //$NON-NLS-1$
+
+ if(isReverseEngineer) {
+ exporters.add("hbmtemplate0"); //$NON-NLS-1$
+ }
exporters.add("hbmtemplate1"); //$NON-NLS-1$
exporters.add("hbmtemplate2"); //$NON-NLS-1$
exporters.add("hbmtemplate3"); //$NON-NLS-1$
@@ -122,9 +124,14 @@
exporters.add("hbmtemplate7"); //$NON-NLS-1$
exporters.add("hbmtemplate8"); //$NON-NLS-1$
exporters.add("hbmtemplate9"); //$NON-NLS-1$
+
wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS, exporters);
- wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate0", true); //$NON-NLS-1$
- wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate0.extension_id", "org.hibernate.tools.hbm2java"); //$NON-NLS-1$ //$NON-NLS-2$
+
+ if(isReverseEngineer) {
+ wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate0", true); //$NON-NLS-1$
+ wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate0.extension_id", "org.hibernate.tools.hbm2java"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate1", true); //$NON-NLS-1$
wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate1.extension_id", "org.hibernate.tools.hbmtemplate"); //$NON-NLS-1$ //$NON-NLS-2$
wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate2", true); //$NON-NLS-1$
17 years, 1 month