Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 159340 Details for
Bug 303088
Nested datamodel is not being set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
303088.txt (text/plain), 2.09 KB, created by
Hari Shankar
on 2010-02-17 12:06:00 EST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Hari Shankar
Created:
2010-02-17 12:06:00 EST
Size:
2.09 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.j2ee >Index: earproject/org/eclipse/jst/j2ee/application/internal/operations/J2EEUtilityJarImportDataModelProvider.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/J2EEUtilityJarImportDataModelProvider.java,v >retrieving revision 1.12 >diff -u -r1.12 J2EEUtilityJarImportDataModelProvider.java >--- earproject/org/eclipse/jst/j2ee/application/internal/operations/J2EEUtilityJarImportDataModelProvider.java 14 Jul 2009 14:13:23 -0000 1.12 >+++ earproject/org/eclipse/jst/j2ee/application/internal/operations/J2EEUtilityJarImportDataModelProvider.java 17 Feb 2010 16:59:11 -0000 >@@ -16,9 +16,13 @@ > */ > package org.eclipse.jst.j2ee.application.internal.operations; > >+import java.util.ArrayList; >+import java.util.List; > import java.util.Set; > > import org.eclipse.jst.j2ee.datamodel.properties.IJavaUtilityJarImportDataModelProperties; >+import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; >+import org.eclipse.jst.j2ee.project.facet.IJ2EEFacetProjectCreationDataModelProperties; > import org.eclipse.jst.j2ee.project.facet.UtilityProjectCreationDataModelProvider; > import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; > import org.eclipse.wst.common.frameworks.datamodel.IDataModel; >@@ -55,4 +59,22 @@ > > return J2EE_UTILITY_JAR_IMPORT_DMP_ID; > } >+ >+ @Override >+ public boolean propertySet(String propertyName, Object propertyValue) { >+ if (EAR_PROJECT_NAME.equals(propertyName)) { >+ List nestedModels = new ArrayList(model.getNestedModels()); >+ IDataModel nestedModel = null; >+ for (int i = 0; i < nestedModels.size(); i++) { >+ nestedModel = (IDataModel) nestedModels.get(i); >+ try { >+ nestedModel.setProperty(IJ2EEFacetProjectCreationDataModelProperties.EAR_PROJECT_NAME, propertyValue); >+ } catch (Exception e) { >+ J2EEPlugin.logError(e); >+ } >+ } >+ return true; >+ } >+ return super.propertySet(propertyName, propertyValue); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 303088
: 159340