Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Edit handwritten Java Code in the VE
Edit handwritten Java Code in the VE [message #90312] Tue, 10 May 2005 07:26 Go to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
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 #90486 is a reply to message #90312] Tue, 10 May 2005 14:25 Go to previous messageGo to next message
Eclipse UserFriend
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 #90515 is a reply to message #90486] Tue, 10 May 2005 14:46 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
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 14:25 Go to previous message
Eclipse UserFriend
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 14:46 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
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.
>
>
Previous Topic:Changing active TabItem in VE
Next Topic:Exception (org.eclipse.jem.internal.proxy.initParser.Static.evaluate)
Goto Forum:
  


Current Time: Thu Apr 25 04:26:19 GMT 2024

Powered by FUDForum. Page generated in 0.02737 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top