GMF creates -1 coordinates [message #228911] |
Tue, 05 May 2009 15:29 |
Stefan Karl Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hello, IŽm currently working on a eclipse-plugin based on emf/gmf, which
allows the user to create gui-prototypes on the canvas. Every gui element
that is available in the plugin has coordinates, such as x-position,
y-position, width and height. The coordinates are used to automatically
create the gui prototype in java-swing, the elements are placed via
mOkButton.setBounds(x, y, width, height); This system works just fine in
about 95 percent of all cases, but there is a little problem left.
Sometimes there is a -1 in the generated code, in which one element of the
coordinate should be. For example mOkButton.setBounds(114, 98, -1, 50); If
i resize the width of the ok button, the real coordinate will be generated.
Thank you very much for your help
Greetings Stefan
|
|
|
|
Powered by
FUDForum. Page generated in 0.05216 seconds