Visual Designer - Version of the document and backward compatibility

There is a few things that you should be aware of when working with Visual Designer in NetBeans Mobility Pack. The Visual Designer is improving from release to release. At the beginning there was only one big guarded block that you could change only with a strange property editors. Now you can edit some parts of code directly in editor. They added custom components and some properties. All files created in the visual designer are backward compatible therefore you can open the visual midlet document (VMD) from Mobility Pack 4.1 in Mobility Pack 5.5. It won't work in the opposite way.

The visual midlet document consist of two files. One is a plain java file and second one is xml describing the screens and components in the Flow/Screen designer. The xml file version is increased release to release or when there are an incompatible changes in the xml. There are even some changes in generated code time to time.
When you are opening an older version of the vmd then a warning appears. Your "old" code will be converted to new style when you confirm OK on the warning. You SHOULD NOT lost any functionality or your code during the upgrade. You won't be able to open the "newer" version of VMD file in older Mobility Pack.

How the versions changed
MVDData versionMobility Pack release
1.0till Mobility Pack 4.1 Beta
1.1Mobility Pack 4.1
1.2 Mobility Pack 5.0
Mobility Pack 5.5 till Beta2
Mobility Pack 6.0 zip distro
1.3Mobility Pack 5.5 (Q-build 20060907, RCs + Final build)

I'd like to answer Iwan's question : Can I use NB6 (once MobPack 6 M3 is out) with my NB55 projects and have my colleagues work on the same MIDlet in MB55 still?
Answer: You cannot share project between MobPack 5.5 060907 Q-build and MobPack 6.0 Zip builds. You won't open it in 6.0.
It could work with MobPack 5.5 beta/beta2 and MobPack 6.0 because the mvd versions are still 1.2. Even the visual designer behaviour is still the same.
Unfortunatelly I have to say that it's on your own risc :(

IMO, the mvd version in 6.0 will be changed to 1.3 when the SVG support will be merged from 5.5 to 6.0 source code.
Comments:

Hi Lukas, I have a J2ME application created using the visual midlet in Netbeans 5.5(something). The midlet got a .java and a .mvd file. The .mvd file contains flow information as you describe here. Now, when I open the same project in Netbeans 6.0 M9 my flow is gone! Whenever I create a new visual midlet in the new Netbeans I see that the "flow definition" is in a file called .vmd. Questions: 1. Is it possible to convert/upgrade/transform my old .mvd to the new .vmd format in order to preserve my flow? 2. What is the technical difference between .vmd and .mvd? 3. Are both supported in Netbeans 6.0 M9, or will one of them be deprecated?

Posted by Viggo Navarsete on May 31, 2007 at 07:03 AM CEST #

Hi Viggo,
In NetBeans 6.0 there are two versions of Visual Designer side by side.
First version is using .mvd for meta-data. Second version is using .vmd for meta-data.
We are planning to create a convertor from .mvd to .vmd file format. We will keep both versions in the release at lesat until the convertor is created.
Anyway the first version is deprecated - you can see that file icons are grayed. To keep the IDE clear, we have decided to use VisualMIDlet file templates of second version only.
An issue is that the conversion could not be 100% accurate, so you would have to e.g. copy-paste user-codes manually.
Regards, David

Posted by David Kaspar on May 31, 2007 at 07:47 AM CEST #

Thanks for the reply David:) I will stick to the .mvd format for the old project until a converter exist, but for all new projects I will use the new visual designer :)

Posted by Viggo Navarsete on May 31, 2007 at 08:01 AM CEST #

hi
i m trying to convert my visual midlet but it can seem to convert.it says it should be stored in net..i dont understand

Posted by thuto on July 02, 2008 at 07:33 AM CEST #

sir plz help me
i am learniing net beans 1.6.9 so i choose a sample projects
Visual Mobile Designer Custom Components: Using Table Items in Java ME Applications
found on net beans website http://netbeans.org/kb/docs/javame/tableitem.html

i complete all steps but last stepe is dificulte for me

becaue sample project MyTable MIDlet java file is not opening in this net beans version . sir which version net beans are Require for this plz tel me

plz reply me on this address

Posted by ahmed on August 19, 2010 at 07:01 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This is the main channel to share news, tips and other stuff related to my work. Sometimes you can find even personal stuff. Enjoy your reading...

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
news
Blogroll

No bookmarks in folder

OldNews
MyTrash
NavBar
NetBeans
LinksToBeExpanded