I created a rich dialog with the Visual Editor but now it is displayed very strangly in the editor, most of the components are only visible as rectangles with a blue border.

I tried to use the following things but without any success:

  • Debug/Clear Visual Cache
  • Project/Clean Project
  • Delete the directory metadata\.plugins\org.eclipse.jem.beaninfo\.cache

I have to admit that I changed some things in the Java code of the rich dialog and added multiple methods.

What can I do to get the correct display in the Visual editor again? To be cleat at run-time everything works fine.

asked 18.12.2009 at 02:07

Steffen%20Janthor's gravatar image

Steffen Janthor
(suspended)
accept rate: 0%


If you want to add code to a rich dialog you have to follow certain rules. The most important are:

  • Never change the signature and the call of the initialize() method.
  • Do not get change the way how each of getXYZ() methods are used for each widget in the rich dialog.
link

answered 18.12.2009 at 03:19

Tamas%20KIS's gravatar image

Tamas KIS
(suspended)
accept rate: 60%

Hallo Herr Kis,

habe das Problem gefunden. Es lag daran, daß einzelne Komponenten zur Laufzeit Daten aus dem Programm bekommen oder sich darauf beziehen. So zum Beispiel ein Kalenderblatt, welches das anzuzueigende Datum erst zur Laufzeit bekommt. Daher wusste der VE nicht, wie das Kalenderblatt zu initialiseren war und ist dann gescheitert.

Sie haben erwähnt, dass es bestimmte Strukturen für den Aufbau von Methoden gibt. Wo gibt es Infos, wie diese Coding Patterns auszusehen haben?

Viele Grüße
Steffen Janthor



> Hallo zusammen,
>
> ich habe ein Panel mit embedded Dialogen erstellt. Lief auch soweit ganz gut.
>
> Jetzt möchte ich das Panel wieder öffnen, jedoch wird nur der blaue Hintergrund mit der richtigen Größe angezeigt - alle Elemente darauf fehlen.
>
> Habe folgendes versucht:
>
> Debug/Clear Visual Cache
> Project/Clean Project
> Ordner metadata\.plugins\org.eclipse.jem.beaninfo\.cache gelöscht
>
> Alles ohne Erfolg.
>
> In der Javasicht habe ich noch einige Routinen eingebaut. Diese waren aber auch im Panel enthalten, als dieses noch angezeigt wurde.
>
> Wie bekomme ich das Panel wieder korrekt angezeigt? Wenn ich das Projekt im Designer/Server starte, läuft alles normal.
>
> Viele Grüße
> Steffen Janthor
>
link

answered 21.12.2009 at 04:21

Tamas%20KIS's gravatar image

Tamas KIS
(suspended)
accept rate: 60%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×40
×3

Asked: 18.12.2009 at 02:07

Seen: 3,831 times

Last updated: 18.12.2009 at 02:07