|
Re: Input to GEF Editor - PLEASE HELP [message #245801 is a reply to message #245771] |
Wed, 15 October 2008 04:40 |
Eclipse User |
|
|
|
Originally posted by: ashar.kpitcummins.com
Hi Dushi,
If I am not wrong in understanding your requirement, all you have to do is,
In the initializeGraphicalViewer() method of your graphical editor,
1. Set the editpart factory for your model elements (make sure you create
an editpart factory for your model elements before coming here, which
returns an editpart for each instance of your model element, probably what
you are calling as rectangle here, that represents some component of your
model)
2. Read from your input file, create the model instance and hierarchy,
along with positioning details.
3. Set this model instance as the content of the graphical editor by
calling setContents() method on your graphical viewer
Hope this solves your problem.
Asha R.
|
|
|
Re: Input to GEF Editor - PLEASE HELP [message #245806 is a reply to message #245771] |
Wed, 15 October 2008 05:28 |
Eclipse User |
|
|
|
Originally posted by: shady_86.sify.com
<i>I am a newbie to GEF, RCP and Java</i>
well you will have to make your java strong before trying RCP and GEF
<i>I am trying to develop an RCP application that parses data from an Input file and display this as graphical representation. To do this I choose GEF </i>
GEF have a model where every figure have a controller and a model.
you just have to populate the model with your input data before the root edit part is set
|
|
|
|
Powered by
FUDForum. Page generated in 0.03401 seconds