Edit handwritten Java Code in the VE [message #90312] |
Tue, 10 May 2005 03:26  |
Eclipse User |
|
|
|
Hello,
I started to work on a project that uses SWT. Therefore I have written
the code for all widgets like Tabfolders, Buttons and so on in the
normal text-editor-view. Everything will be initialized in the main-method.
Now I want to edit the classes in the VE. I thought it might be possible
to reorder the widgets and so on. So I started to setup an VE project
and it runs well. But when I open one of my own (handwritten) classes -
I see just nothing..... wait.....a blank screen ;-)
My question is: What do I have to keep in mind when writing java code by
hand and open it in the VE later? What syntax is required that the VE
"detects" my widgets? I think there must be a special "coding style".
Please can anyone help me??
thx
Flik
|
|
|
|
Re: Edit handwritten Java Code in the VE [message #90515 is a reply to message #90486] |
Tue, 10 May 2005 10:46  |
Eclipse User |
|
|
|
thanks for answering my question.
i just started to create some demo-shells with several components on
them. For me it seems to be 'normal' SWT code but it has a "special
order". Every "Container" (shell,composite,...) has its own init-method
and each children is initialized in the method of its parent.
e.g.: a composite has a label and a button, so there will be a method
createCompositen and within these method the two widgets will be created.
so i will try to write my code by hand and i will compare it to the
VE-generated demo-shells.
thx
flik
Rich Kulp schrieb:
> The easiest way to see the code format we support is for you to use the
> New Visual Class Wizard and create an SWT application, and/or Composite
> subclass and drop some components on them.
>
>
|
|
|
Re: Edit handwritten Java Code in the VE [message #607389 is a reply to message #90312] |
Tue, 10 May 2005 10:25  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
The easiest way to see the code format we support is for you to use the
New Visual Class Wizard and create an SWT application, and/or Composite
subclass and drop some components on them.
--
Thanks,
Rich Kulp
|
|
|
Re: Edit handwritten Java Code in the VE [message #607391 is a reply to message #90486] |
Tue, 10 May 2005 10:46  |
Eclipse User |
|
|
|
thanks for answering my question.
i just started to create some demo-shells with several components on
them. For me it seems to be 'normal' SWT code but it has a "special
order". Every "Container" (shell,composite,...) has its own init-method
and each children is initialized in the method of its parent.
e.g.: a composite has a label and a button, so there will be a method
createCompositen and within these method the two widgets will be created.
so i will try to write my code by hand and i will compare it to the
VE-generated demo-shells.
thx
flik
Rich Kulp schrieb:
> The easiest way to see the code format we support is for you to use the
> New Visual Class Wizard and create an SWT application, and/or Composite
> subclass and drop some components on them.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03973 seconds