This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 209096 - Initial preset not being set correctly in new faceted project wizard page
Summary: Initial preset not being set correctly in new faceted project wizard page
Status: RESOLVED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact: Konstantin Komissarchik CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 210078
  Show dependency tree
 
Reported: 2007-11-07 16:04 EST by Karen Butzke CLA
Modified: 2007-12-04 18:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2007-11-07 16:04:53 EST
Recent changes for bug 138074 have broken the initial preset in the new project wizard page.  In the new JPA project wizard we define a preset Utility JPA Project with Java 5.0 (presets are jst.java v5.0, jst.utility v1.0, jpt.jpa v1.0).  In the maintenance release this preset was chosen by default in the Configuration combo box when you created a new JPA project wizard.  Now
'<custom>' is chosen by default.

Also, if you select Modify... in the Configurations section it displays Java
with a version of 1.4.  If you change nothing on the first page, (which worked
in the 1.0.1 maintenance stream) when you finish the wizard the project
creation fails (creates an empty project) and it informs you 'One or more
constraints have not been satisfied. Java Persistence 1.0 requires Java 5.0 or
newer.'

Any thoughts? Here is the related plugin.xml code:


        <extension
                point="org.eclipse.wst.common.project.facet.core.presets">

                <static-preset id="jpt.jpa.preset">
                        <label>%JPA_PRESET_LABEL</label>
                        <facet id="jst.java" version="5.0"/>
                        <facet id="jst.utility" version="1.0"/>
                        <facet id="jpt.jpa" version="1.0"/>
                </static-preset>

        </extension>

        <extension
                point="org.eclipse.wst.common.project.facet.core.facets">
           .....
                <template id="jpt.jpa.template">
                        <label>%JPA_TEMPLATE_LABEL</label>
                        <fixed facet="jst.java"/>
                        <fixed facet="jst.utility"/>
                        <fixed facet="jpt.jpa"/>
                        <preset id="jpt.jpa.preset"/>
                </template>
        .....
Comment 1 Konstantin Komissarchik CLA 2007-11-12 15:38:49 EST
Given that at this point only critical fixes are to be released into the M3 code line, I will target this for M4. Let me know if you disagree.

Setting severity as major since this is a regression.
Comment 2 Konstantin Komissarchik CLA 2007-12-04 18:18:02 EST
Fix released into the 3.0 code stream.