FormEditor Example [message #436506] |
Fri, 09 September 2005 20:02 |
Eclipse User |
|
|
|
Originally posted by: bdberry.us.ibm.com
Can anyone point me to a good example of using form editors?
|
|
|
Re: FormEditor Example [message #436514 is a reply to message #436506] |
Sat, 10 September 2005 16:25 |
Eclipse User |
|
|
|
Originally posted by: pdavis.airisen.net
Brian Berry wrote:
> Can anyone point me to a good example of using form editors?
Yes please - I'm here looking for exactly the same thing
|
|
|
Re: FormEditor Example [message #436524 is a reply to message #436514] |
Sun, 11 September 2005 14:14 |
Eclipse User |
|
|
|
Originally posted by: pdavis.airisen.net
<posted & mailed>
javasOK wrote:
> Brian Berry wrote:
>
>> Can anyone point me to a good example of using form editors?
>
> Yes please - I'm here looking for exactly the same thing
Looks like this example article hasn't been written yet, so.....
I have a workspace with a Tomcat server and the WST and JST installed. In
the "Server" view, I can click on the Tomcat server and a server
configuration editor Form opens up for editing the server configuration -
its similar to opening up the configuration editor for the WebSphere Test
server in RSA/WSAD. For me at least, this looks like the kind of Form I'm
shooting for. That given, I'm using the WST/JST Tomcat configration code as
my example.
Flip open a CVS prespective and connect to a new repository location:
host: dev.eclipse.org
path: /home/webtools
user: anonymous
pw: [leave blank]
conn: pserver
use default port
Once you're connected open the HEAD, right-click the jst folder/project and
"checkout as project". Do the same with the wst folder/project.
The server plugin has a set of generic components which apply to any kind of
server which are in the WST plugin/project. Server-specific components are
supplied by the JST plugin/project. (I may not have this exactly right -
I'm looking for a Form example after all - but that's what it looks like
after all of 10 minutes study).
The story seems to start with:
wst/components/server/plugins/org.eclipse.wst.server.ui/serv erui/org/eclipse
/wst/server/ui/internal/editor/OverviewEditorPart.java
The OverviewEditorPart paints a section for the server name, host name,
Runtime, Config path, and a radio group for Publishing options. It also
functions as the "overall" container for the Form (see
createPartControl(parent) and the top-level ScrolledForm).
The other sections of the configuration editor Form are Tomcat-specific and
can be found in:
/jst/component/server/plugins/org.eclipse.jst.server.tomcat. ui/tomcatui/
org/eclipse/jst/server/tomcat/ui/internal/editor.......
ServerGeneralEditorSection.java
ConfigurationMimeEditorSection.java
ConfigurationPortEditorSection.java
etc
etc
This looks like a pretty good example of a reasonably complex Form-based
editor where each section is delegated to a section class and has a decent
selection of widgets for building each section.
|
|
|
Powered by
FUDForum. Page generated in 0.03277 seconds