- This topic has 6 replies, 2 voices, and was last updated 18 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
sjacobsDVMemberI cannot edit some component properties using the custom editor. For example… I’m trying to edit the text property of a JLabel using the custom editor. The text box on the custom editor dialog will not get focus, I cannot type into it. Installation details below. This was working fine until I changed Java versions. I was using Java 1.5.0_06, but I upgraded to Java 1.6 in order to get custom forms to work. On the boards I noticed that 1.6 was not recommended, so I changed to 1.5.0_10. Custom editor was working fine before. In fact I can still use them for components that already exist, I’m only having trouble when I paste new components on my Forms.
*** Date:
Wednesday, January 24, 2007 2:44:46 PM EST** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_10*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.1.0 GA
Build id: 20061111-5.1.0-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.1.0 GA
Build id: 20061111-5.1.0-GAEclipse Graphical Editing Framework
Version: 3.2.1.v20060921
Build id: 20060921-1617Eclipse Platform
Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
Build id: I20060602-1317Eclipse Java Development Tools
Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
Build id: M20060921-0945Eclipse Project SDK
Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
Build id: M20060921-0945Eclipse RCP
Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
Build id: M20060921-0945Eclipse Plug-in Development Environment
Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
Build id: M20060921-0945Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
d98_80
-product
com.genuitec.myeclipse.product.ide
-vm
C:\Program Files\Java\jdk1.5.0_10\bin\javaw.exe
Riyad KallaMemberCustom editor was working fine before. In fact I can still use them for components that already exist, I’m only having trouble when I paste new components on my Forms.
I got confused by this… so what is the remaining problem? The forms are working, but custom components aren’t?
sjacobsDVMemberI can’t use the custom editor to edit the text property of controls like JLabel. Instead of directly entering strings for the text property I use a method call to substitute localized strings.
Steps to reproduce:
1. Open a M4M form.
2. Click on JLabel in Palette, paste on form
3. In the Properties window, click on the custom editor button for the text property
4. On resulting dialog, Select Mode: Form Connection
5. Choose User Code radio button
6. Attempt to enter text in User Code text field. Cannot get focus on field, cannot enter text.I’m guessing that something is wrong with my configuration since it was working fine before I installed Java 1.6.0. Now that I’ve set my Java Home back to 1.5.0_10, it’s still not working.
sjacobsDVMemberSome additional information…
I decided to re-build my dev environment from scratch. My “normal” installation has Eclipse installed in c:\eclipse directory and MyEclipse installed in c:\ProgramFiles\MyEclipse Enterprise Workbench 5.1.0GA. When I re-installed, I used the “Full Stack” installer, which installed Eclipse for you, and everything is in c:\Program Files\My Eclipse Enterprise….. I installed M4M and created a test project. Everything worked as normal. Unfortunately due to circumstances beyond my control, I have to have Eclipse installed in C:\eclipse directory (we’re hoping to change this some day). So I un-installed everything, installed Eclipse 3.2 in c:\eclipse, then installed MyEclipse in c:\Program Files\MyEclipse….. directory, then installed M4M. I created a test project and followed my steps to reproduce above. Problem reproduces. So, it seems like this has something to do with having MyEclipse and Eclipse installed in different directories.
Riyad KallaMemberAhh I think the problem is simple here, that Java 6 is still your default JRE and MyEclipse is finding it and running with it. The full-stack uses (and forced) the use of JRE 1.5.0_08 which is why it worked.
How you can fix this is to edit your shortcut you use to run Eclipse, and specify the exact VM to run Eclipse/MyEclipse with using the -vm command line argument, like so:
eclipse.exe -vm C:\Program Files\Java\jdk1.5.0_08\bin\javaw.exeas an example.
sjacobsDVMemberThank you, Thank you, Thank you! That did the trick.
Thank you also for your prompt response, you are the best!
Riyad KallaMemberI’m happy to hear it worked.
-
AuthorPosts