Bug 163588 - BlueJ project cannot be converted to J2SE project when IDE started in ergo mode
BlueJ project cannot be converted to J2SE project when IDE started in ergo mode
Status: NEW
Product: ide
Classification: Unclassified
Component: BlueJ
6.x
All Windows XP
: P3 (vote)
: TBD
Assigned To: issues@ide
issues@ide
: ERGONOMICS
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-24 13:12 UTC by Oleg Khokhlov
Modified: 2010-07-30 15:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Khokhlov 2009-04-24 13:12:26 UTC
- Start IDE with new userdir with ergonomics enabled.
- Install BlueJ plugin
- Create BlueJ project -> 'Convert to Java SE project' popup menu

progress will go to 10% and that's all.

Product Version: NetBeans IDE Dev (Build 200904240201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\tester\.netbeans\dev
Comment 1 Milos Kleint 2009-04-24 14:10:28 UTC
I guess something is not enabled properly
Comment 2 Jaroslav Tulach 2009-06-26 16:49:09 UTC
The following runtime lookup fails, as J2SEProject module is not enabled:

        Class j2seclazz = loader.loadClass("org.netbeans.modules.java.j2seproject.J2SEProjectGenerator");  // NOI18N
        Method createMethod = j2seclazz.getMethod("createProject", new Class[] {  // NOI18N
            File.class, String.class, String.class, String.class, String.class
        });
        createMethod.invoke(null, new Object[] {
            file, info.getName(), null, null, null
        });
        handle.progress(5);

Simple fix is to add runtime dependency on that project like in following patch. However I rather leave the final fix 
on the maintainer of the code:

diff -r a057deef0e8b o.n.bluej/manifest.mf
--- a/o.n.bluej/manifest.mf     Tue Jun 23 09:32:51 2009 +0200
+++ b/o.n.bluej/manifest.mf     Fri Jun 26 17:48:23 2009 +0200
@@ -3,5 +3,5 @@
 OpenIDE-Module-Layer: org/netbeans/bluej/layer.xml
 OpenIDE-Module-Localizing-Bundle: org/netbeans/bluej/Bundle.properties
 OpenIDE-Module-Requires: org.netbeans.api.javahelp.Help
-OpenIDE-Module-Specification-Version: 1.4
+OpenIDE-Module-Specification-Version: 1.5

diff -r a057deef0e8b o.n.bluej/nbproject/project.xml
--- a/o.n.bluej/nbproject/project.xml   Tue Jun 23 09:32:51 2009 +0200
+++ b/o.n.bluej/nbproject/project.xml   Fri Jun 26 17:48:23 2009 +0200
@@ -74,6 +74,13 @@
                     <run-dependency>
                         <release-version>1</release-version>
                         <specification-version>1.8.1</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.netbeans.modules.java.j2seproject</code-name-base>
+                    <run-dependency>
+                        <release-version>1</release-version>
+                        <specification-version>1.27</specification-version>
                     </run-dependency>
                 </dependency>
                 <dependency>
Comment 3 Antonin Nebuzelsky 2010-07-30 15:17:12 UTC
Reassigning to default owner.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo