Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Custom SWT-Widget added but not drawn
Custom SWT-Widget added but not drawn [message #113366] Thu, 15 December 2005 22:27 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Hi,

I have a set of custom SWT-Widget which e.g. derived from Text,
DropDown, ... . I can select them and drag them to the composite, they
are added to the code but are not drawn on the screen.

Do my widget have to implement something special to be drawn in VE, some
sort of interface or the like?


Tom
Re: Custom SWT-Widget added but not drawn [message #113692 is a reply to message #113366] Mon, 19 December 2005 17:51 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Tom,
Which platform is this happening in? Also are there any exceptions in
the .log file?
Regards,
Sri.


Tom Schindl wrote:
> Hi,
>
> I have a set of custom SWT-Widget which e.g. derived from Text,
> DropDown, ... . I can select them and drag them to the composite, they
> are added to the code but are not drawn on the screen.
>
> Do my widget have to implement something special to be drawn in VE, some
> sort of interface or the like?
>
>
> Tom
Re: Custom SWT-Widget added but not drawn [message #113943 is a reply to message #113692] Thu, 22 December 2005 09:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Hi Sri,

if you mean in .metadata/.log. No there's no message at all. I read the
article about extending VE and gave it a try creating a plugin and
adding the desired dependencies but no change.

I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
manager. Should I upgrade to eclipse M4 and VE 1.2M1?

Tom

Sri Gunturi wrote:
> Hi Tom,
> Which platform is this happening in? Also are there any exceptions
> in the .log file?
> Regards,
> Sri.
>
>
> Tom Schindl wrote:
>
>> Hi,
>>
>> I have a set of custom SWT-Widget which e.g. derived from Text,
>> DropDown, ... . I can select them and drag them to the composite, they
>> are added to the code but are not drawn on the screen.
>>
>> Do my widget have to implement something special to be drawn in VE, some
>> sort of interface or the like?
>>
>>
>> Tom
Re: Custom SWT-Widget added but not drawn [message #113955 is a reply to message #113943] Thu, 22 December 2005 14:23 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Tom,
VE 1.1 is based on Eclipse 3.1 and things might not work with Eclipse
3.2M3. It would be great if you could upgrade to VE 1.2M1 and Eclipse
3.2M4 as you get new features and bug fixes.
Regards,
Sri.

Tom Schindl wrote:
> Hi Sri,
>
> if you mean in .metadata/.log. No there's no message at all. I read the
> article about extending VE and gave it a try creating a plugin and
> adding the desired dependencies but no change.
>
> I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
> manager. Should I upgrade to eclipse M4 and VE 1.2M1?
>
> Tom
>
> Sri Gunturi wrote:
>
>>Hi Tom,
>> Which platform is this happening in? Also are there any exceptions
>>in the .log file?
>>Regards,
>>Sri.
>>
>>
>>Tom Schindl wrote:
>>
>>
>>>Hi,
>>>
>>>I have a set of custom SWT-Widget which e.g. derived from Text,
>>>DropDown, ... . I can select them and drag them to the composite, they
>>>are added to the code but are not drawn on the screen.
>>>
>>>Do my widget have to implement something special to be drawn in VE, some
>>>sort of interface or the like?
>>>
>>>
>>>Tom
Re: Custom SWT-Widget added but not drawn [message #113968 is a reply to message #113955] Thu, 22 December 2005 16:57 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Hi,

well did the upgrade and now I can use my own widgets in the VE which is
really cool. The problem I have faced is that my widget have to placed
on a special Composite implementing an interface else they throw an
IllegalArgumentException and I have forgotten todo so. Why are
exceptions not displayed in the error-log?

I will now take a look at the Properties dialog and how I could pass my
own special properties. We have implemented a SWT/JFace-DB-Binding now
we are trying to create a visual designer for Database-Forms.

At the moment I have the following structure:

- FormComposite extends Composite
- DatabaseModel
- TextField extends Text
- CurrencyField extends TextField
- DropDown extends Combo
- ....
- FormComposite extends TableViewer
- TextColumn extends TableColumn
- CurrencyColumn extends TableColumn
- ....

What I'd like to do is the following:
-------------------------------------
- User has a View-Containing it's datasources using the DTP-Project
- User selects one of the queries and drags them to the FormComposite
=> DatabaseModel is created with selected query
=> DatabaseModel is assigned to FormComposite
- User selects one of fields returned by the query and drags it to the
form-composite (based on the column type a TextField, CurrencyField,
...) is created on the FormComposite


Now different Questions arise to me:
------------------------------------
- Does VE provide any hooks to register when the user drags things from
the DTP-View in the VE area and decide what has to be added?
- Is it possible "design components" who are JavaBeans but don't are not
displayable like Text, Composite - my case e.g. the DatabaseModel
- Is it possible to use JFace-Components like TableViewer, TreeViewer in
VE.


One more thing:
---------------
I read the article about extending VE but I ask my self if it's really
true because it says one has to create a plugin, add dependency like
gef, ... which was not necessary for me.

Thanks

Tom

Sri Gunturi wrote:
> Hi Tom,
> VE 1.1 is based on Eclipse 3.1 and things might not work with
> Eclipse 3.2M3. It would be great if you could upgrade to VE 1.2M1 and
> Eclipse 3.2M4 as you get new features and bug fixes.
> Regards,
> Sri.
>
> Tom Schindl wrote:
>
>> Hi Sri,
>>
>> if you mean in .metadata/.log. No there's no message at all. I read the
>> article about extending VE and gave it a try creating a plugin and
>> adding the desired dependencies but no change.
>>
>> I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
>> manager. Should I upgrade to eclipse M4 and VE 1.2M1?
>>
>> Tom
>>
>> Sri Gunturi wrote:
>>
>>> Hi Tom,
>>> Which platform is this happening in? Also are there any exceptions
>>> in the .log file?
>>> Regards,
>>> Sri.
>>>
>>>
>>> Tom Schindl wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> I have a set of custom SWT-Widget which e.g. derived from Text,
>>>> DropDown, ... . I can select them and drag them to the composite, they
>>>> are added to the code but are not drawn on the screen.
>>>>
>>>> Do my widget have to implement something special to be drawn in VE,
>>>> some
>>>> sort of interface or the like?
>>>>
>>>>
>>>> Tom
Re: Custom SWT-Widget added but not drawn [message #113980 is a reply to message #113968] Thu, 22 December 2005 17:27 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Tom,

> Why are exceptions not displayed in the error-log?
If you have a development environment, in the launch configuration goto
the Tracing tab and enable tracing. Then check the
'org.eclipse.jem.proxy' plugin and check the 'remote/debug/vmtraceout'
option to see the remote VM's output.


> - Does VE provide any hooks to register when the user drags
> things from the DTP-View in the VE area and decide what has
> to be added?
Currently the default behavior of the widgets in VE have not had a
requirement for such a drag&drop scenario from other views. You can
implement such a feature by creating your own 'drag&drop' aware widgets
and corresponding EditParts/EditPolicies. Please have a look at the
"Extending the Visual Editor Tutorial: Enabling support for a custom
widget" tutorial for that.


> - Is it possible "design components" who are JavaBeans but don't
> are not displayable like Text, Composite - my case e.g. the
> DatabaseModel
Yes. Drop using the ChooseBean entry in palette the java.awt.print.Book
class on VE. It is a non-visual which shows up as a bean. I guess you
want to put a fancy EditPart for your DatabaseModel class. Again that
can be achieved, and instructions are in the tutorial mentioned above.


> - Is it possible to use JFace-Components like TableViewer,
> TreeViewer in VE.
Actually VE 1.2M1 now has support added for JFace Viewers
(TreeViewer/TableViewer/ComboViewer). Please have a look at the New &
Noteworthy about them:
http://www.eclipse.org/vep/WebContent/docs/newAndNoteworthy/ 1.2-M1/


> I read the article about extending VE but I ask my self if it's
> really true because it says one has to create a plugin, add
> dependency like gef, ... which was not necessary for me.
If you want to extend the functionality of VE which exists in Eclipse,
you would have to make your own plugin for Eclipse. So that when Eclipse
loads it adds your own extensions on top of whats already there. So, you
would have to create a plugin as mentioned in the tutorial, to do all
the cool stuff you mentioned above.

Hope that helped.
Regards,
Sri.


Tom Schindl wrote:
> Hi,
>
> well did the upgrade and now I can use my own widgets in the VE which is
> really cool. The problem I have faced is that my widget have to placed
> on a special Composite implementing an interface else they throw an
> IllegalArgumentException and I have forgotten todo so. Why are
> exceptions not displayed in the error-log?
>
> I will now take a look at the Properties dialog and how I could pass my
> own special properties. We have implemented a SWT/JFace-DB-Binding now
> we are trying to create a visual designer for Database-Forms.
>
> At the moment I have the following structure:
>
> - FormComposite extends Composite
> - DatabaseModel
> - TextField extends Text
> - CurrencyField extends TextField
> - DropDown extends Combo
> - ....
> - FormComposite extends TableViewer
> - TextColumn extends TableColumn
> - CurrencyColumn extends TableColumn
> - ....
>
> What I'd like to do is the following:
> -------------------------------------
> - User has a View-Containing it's datasources using the DTP-Project
> - User selects one of the queries and drags them to the FormComposite
> => DatabaseModel is created with selected query
> => DatabaseModel is assigned to FormComposite
> - User selects one of fields returned by the query and drags it to the
> form-composite (based on the column type a TextField, CurrencyField,
> ...) is created on the FormComposite
>
>
> Now different Questions arise to me:
> ------------------------------------
> - Does VE provide any hooks to register when the user drags things from
> the DTP-View in the VE area and decide what has to be added?
> - Is it possible "design components" who are JavaBeans but don't are not
> displayable like Text, Composite - my case e.g. the DatabaseModel
> - Is it possible to use JFace-Components like TableViewer, TreeViewer in
> VE.
>
>
> One more thing:
> ---------------
> I read the article about extending VE but I ask my self if it's really
> true because it says one has to create a plugin, add dependency like
> gef, ... which was not necessary for me.
>
> Thanks
>
> Tom
>
> Sri Gunturi wrote:
>
>>Hi Tom,
>> VE 1.1 is based on Eclipse 3.1 and things might not work with
>>Eclipse 3.2M3. It would be great if you could upgrade to VE 1.2M1 and
>>Eclipse 3.2M4 as you get new features and bug fixes.
>>Regards,
>>Sri.
>>
>>Tom Schindl wrote:
>>
>>
>>>Hi Sri,
>>>
>>>if you mean in .metadata/.log. No there's no message at all. I read the
>>>article about extending VE and gave it a try creating a plugin and
>>>adding the desired dependencies but no change.
>>>
>>>I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
>>>manager. Should I upgrade to eclipse M4 and VE 1.2M1?
>>>
>>>Tom
>>>
>>>Sri Gunturi wrote:
>>>
>>>
>>>>Hi Tom,
>>>> Which platform is this happening in? Also are there any exceptions
>>>>in the .log file?
>>>>Regards,
>>>>Sri.
>>>>
>>>>
>>>>Tom Schindl wrote:
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I have a set of custom SWT-Widget which e.g. derived from Text,
>>>>>DropDown, ... . I can select them and drag them to the composite, they
>>>>>are added to the code but are not drawn on the screen.
>>>>>
>>>>>Do my widget have to implement something special to be drawn in VE,
>>>>>some
>>>>>sort of interface or the like?
>>>>>
>>>>>
>>>>>Tom
Re: Custom SWT-Widget added but not drawn [message #114006 is a reply to message #113968] Thu, 22 December 2005 18:40 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Tom,
Since you are doing some binding from visual components to data, I
thought you might be interested in using the JFace binding currently
being developed. Dr.Gili Mendel has created a presentation on how to
achieve this using the new JFace bindings available in 3.2M4 builds. You
can view this presentation at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-home/databinding-proposal/Viewlets/Binders1_viewlet. html
Regards,
Sri.





Tom Schindl wrote:
> Hi,
>
> well did the upgrade and now I can use my own widgets in the VE which is
> really cool. The problem I have faced is that my widget have to placed
> on a special Composite implementing an interface else they throw an
> IllegalArgumentException and I have forgotten todo so. Why are
> exceptions not displayed in the error-log?
>
> I will now take a look at the Properties dialog and how I could pass my
> own special properties. We have implemented a SWT/JFace-DB-Binding now
> we are trying to create a visual designer for Database-Forms.
>
> At the moment I have the following structure:
>
> - FormComposite extends Composite
> - DatabaseModel
> - TextField extends Text
> - CurrencyField extends TextField
> - DropDown extends Combo
> - ....
> - FormComposite extends TableViewer
> - TextColumn extends TableColumn
> - CurrencyColumn extends TableColumn
> - ....
>
> What I'd like to do is the following:
> -------------------------------------
> - User has a View-Containing it's datasources using the DTP-Project
> - User selects one of the queries and drags them to the FormComposite
> => DatabaseModel is created with selected query
> => DatabaseModel is assigned to FormComposite
> - User selects one of fields returned by the query and drags it to the
> form-composite (based on the column type a TextField, CurrencyField,
> ...) is created on the FormComposite
>
>
> Now different Questions arise to me:
> ------------------------------------
> - Does VE provide any hooks to register when the user drags things from
> the DTP-View in the VE area and decide what has to be added?
> - Is it possible "design components" who are JavaBeans but don't are not
> displayable like Text, Composite - my case e.g. the DatabaseModel
> - Is it possible to use JFace-Components like TableViewer, TreeViewer in
> VE.
>
>
> One more thing:
> ---------------
> I read the article about extending VE but I ask my self if it's really
> true because it says one has to create a plugin, add dependency like
> gef, ... which was not necessary for me.
>
> Thanks
>
> Tom
>
> Sri Gunturi wrote:
>
>>Hi Tom,
>> VE 1.1 is based on Eclipse 3.1 and things might not work with
>>Eclipse 3.2M3. It would be great if you could upgrade to VE 1.2M1 and
>>Eclipse 3.2M4 as you get new features and bug fixes.
>>Regards,
>>Sri.
>>
>>Tom Schindl wrote:
>>
>>
>>>Hi Sri,
>>>
>>>if you mean in .metadata/.log. No there's no message at all. I read the
>>>article about extending VE and gave it a try creating a plugin and
>>>adding the desired dependencies but no change.
>>>
>>>I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
>>>manager. Should I upgrade to eclipse M4 and VE 1.2M1?
>>>
>>>Tom
>>>
>>>Sri Gunturi wrote:
>>>
>>>
>>>>Hi Tom,
>>>> Which platform is this happening in? Also are there any exceptions
>>>>in the .log file?
>>>>Regards,
>>>>Sri.
>>>>
>>>>
>>>>Tom Schindl wrote:
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I have a set of custom SWT-Widget which e.g. derived from Text,
>>>>>DropDown, ... . I can select them and drag them to the composite, they
>>>>>are added to the code but are not drawn on the screen.
>>>>>
>>>>>Do my widget have to implement something special to be drawn in VE,
>>>>>some
>>>>>sort of interface or the like?
>>>>>
>>>>>
>>>>>Tom
Re: Custom SWT-Widget added but not drawn [message #611669 is a reply to message #113366] Mon, 19 December 2005 17:51 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Tom,
Which platform is this happening in? Also are there any exceptions in
the .log file?
Regards,
Sri.


Tom Schindl wrote:
> Hi,
>
> I have a set of custom SWT-Widget which e.g. derived from Text,
> DropDown, ... . I can select them and drag them to the composite, they
> are added to the code but are not drawn on the screen.
>
> Do my widget have to implement something special to be drawn in VE, some
> sort of interface or the like?
>
>
> Tom
Re: Custom SWT-Widget added but not drawn [message #611686 is a reply to message #113692] Thu, 22 December 2005 09:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Hi Sri,

if you mean in .metadata/.log. No there's no message at all. I read the
article about extending VE and gave it a try creating a plugin and
adding the desired dependencies but no change.

I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
manager. Should I upgrade to eclipse M4 and VE 1.2M1?

Tom

Sri Gunturi wrote:
> Hi Tom,
> Which platform is this happening in? Also are there any exceptions
> in the .log file?
> Regards,
> Sri.
>
>
> Tom Schindl wrote:
>
>> Hi,
>>
>> I have a set of custom SWT-Widget which e.g. derived from Text,
>> DropDown, ... . I can select them and drag them to the composite, they
>> are added to the code but are not drawn on the screen.
>>
>> Do my widget have to implement something special to be drawn in VE, some
>> sort of interface or the like?
>>
>>
>> Tom
Re: Custom SWT-Widget added but not drawn [message #611687 is a reply to message #113943] Thu, 22 December 2005 14:23 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Tom,
VE 1.1 is based on Eclipse 3.1 and things might not work with Eclipse
3.2M3. It would be great if you could upgrade to VE 1.2M1 and Eclipse
3.2M4 as you get new features and bug fixes.
Regards,
Sri.

Tom Schindl wrote:
> Hi Sri,
>
> if you mean in .metadata/.log. No there's no message at all. I read the
> article about extending VE and gave it a try creating a plugin and
> adding the desired dependencies but no change.
>
> I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
> manager. Should I upgrade to eclipse M4 and VE 1.2M1?
>
> Tom
>
> Sri Gunturi wrote:
>
>>Hi Tom,
>> Which platform is this happening in? Also are there any exceptions
>>in the .log file?
>>Regards,
>>Sri.
>>
>>
>>Tom Schindl wrote:
>>
>>
>>>Hi,
>>>
>>>I have a set of custom SWT-Widget which e.g. derived from Text,
>>>DropDown, ... . I can select them and drag them to the composite, they
>>>are added to the code but are not drawn on the screen.
>>>
>>>Do my widget have to implement something special to be drawn in VE, some
>>>sort of interface or the like?
>>>
>>>
>>>Tom
Re: Custom SWT-Widget added but not drawn [message #611688 is a reply to message #113955] Thu, 22 December 2005 16:57 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Hi,

well did the upgrade and now I can use my own widgets in the VE which is
really cool. The problem I have faced is that my widget have to placed
on a special Composite implementing an interface else they throw an
IllegalArgumentException and I have forgotten todo so. Why are
exceptions not displayed in the error-log?

I will now take a look at the Properties dialog and how I could pass my
own special properties. We have implemented a SWT/JFace-DB-Binding now
we are trying to create a visual designer for Database-Forms.

At the moment I have the following structure:

- FormComposite extends Composite
- DatabaseModel
- TextField extends Text
- CurrencyField extends TextField
- DropDown extends Combo
- ....
- FormComposite extends TableViewer
- TextColumn extends TableColumn
- CurrencyColumn extends TableColumn
- ....

What I'd like to do is the following:
-------------------------------------
- User has a View-Containing it's datasources using the DTP-Project
- User selects one of the queries and drags them to the FormComposite
=> DatabaseModel is created with selected query
=> DatabaseModel is assigned to FormComposite
- User selects one of fields returned by the query and drags it to the
form-composite (based on the column type a TextField, CurrencyField,
...) is created on the FormComposite


Now different Questions arise to me:
------------------------------------
- Does VE provide any hooks to register when the user drags things from
the DTP-View in the VE area and decide what has to be added?
- Is it possible "design components" who are JavaBeans but don't are not
displayable like Text, Composite - my case e.g. the DatabaseModel
- Is it possible to use JFace-Components like TableViewer, TreeViewer in
VE.


One more thing:
---------------
I read the article about extending VE but I ask my self if it's really
true because it says one has to create a plugin, add dependency like
gef, ... which was not necessary for me.

Thanks

Tom

Sri Gunturi wrote:
> Hi Tom,
> VE 1.1 is based on Eclipse 3.1 and things might not work with
> Eclipse 3.2M3. It would be great if you could upgrade to VE 1.2M1 and
> Eclipse 3.2M4 as you get new features and bug fixes.
> Regards,
> Sri.
>
> Tom Schindl wrote:
>
>> Hi Sri,
>>
>> if you mean in .metadata/.log. No there's no message at all. I read the
>> article about extending VE and gave it a try creating a plugin and
>> adding the desired dependencies but no change.
>>
>> I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
>> manager. Should I upgrade to eclipse M4 and VE 1.2M1?
>>
>> Tom
>>
>> Sri Gunturi wrote:
>>
>>> Hi Tom,
>>> Which platform is this happening in? Also are there any exceptions
>>> in the .log file?
>>> Regards,
>>> Sri.
>>>
>>>
>>> Tom Schindl wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> I have a set of custom SWT-Widget which e.g. derived from Text,
>>>> DropDown, ... . I can select them and drag them to the composite, they
>>>> are added to the code but are not drawn on the screen.
>>>>
>>>> Do my widget have to implement something special to be drawn in VE,
>>>> some
>>>> sort of interface or the like?
>>>>
>>>>
>>>> Tom
Re: Custom SWT-Widget added but not drawn [message #611689 is a reply to message #113968] Thu, 22 December 2005 17:27 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Tom,

> Why are exceptions not displayed in the error-log?
If you have a development environment, in the launch configuration goto
the Tracing tab and enable tracing. Then check the
'org.eclipse.jem.proxy' plugin and check the 'remote/debug/vmtraceout'
option to see the remote VM's output.


> - Does VE provide any hooks to register when the user drags
> things from the DTP-View in the VE area and decide what has
> to be added?
Currently the default behavior of the widgets in VE have not had a
requirement for such a drag&drop scenario from other views. You can
implement such a feature by creating your own 'drag&drop' aware widgets
and corresponding EditParts/EditPolicies. Please have a look at the
"Extending the Visual Editor Tutorial: Enabling support for a custom
widget" tutorial for that.


> - Is it possible "design components" who are JavaBeans but don't
> are not displayable like Text, Composite - my case e.g. the
> DatabaseModel
Yes. Drop using the ChooseBean entry in palette the java.awt.print.Book
class on VE. It is a non-visual which shows up as a bean. I guess you
want to put a fancy EditPart for your DatabaseModel class. Again that
can be achieved, and instructions are in the tutorial mentioned above.


> - Is it possible to use JFace-Components like TableViewer,
> TreeViewer in VE.
Actually VE 1.2M1 now has support added for JFace Viewers
(TreeViewer/TableViewer/ComboViewer). Please have a look at the New &
Noteworthy about them:
http://www.eclipse.org/vep/WebContent/docs/newAndNoteworthy/ 1.2-M1/


> I read the article about extending VE but I ask my self if it's
> really true because it says one has to create a plugin, add
> dependency like gef, ... which was not necessary for me.
If you want to extend the functionality of VE which exists in Eclipse,
you would have to make your own plugin for Eclipse. So that when Eclipse
loads it adds your own extensions on top of whats already there. So, you
would have to create a plugin as mentioned in the tutorial, to do all
the cool stuff you mentioned above.

Hope that helped.
Regards,
Sri.


Tom Schindl wrote:
> Hi,
>
> well did the upgrade and now I can use my own widgets in the VE which is
> really cool. The problem I have faced is that my widget have to placed
> on a special Composite implementing an interface else they throw an
> IllegalArgumentException and I have forgotten todo so. Why are
> exceptions not displayed in the error-log?
>
> I will now take a look at the Properties dialog and how I could pass my
> own special properties. We have implemented a SWT/JFace-DB-Binding now
> we are trying to create a visual designer for Database-Forms.
>
> At the moment I have the following structure:
>
> - FormComposite extends Composite
> - DatabaseModel
> - TextField extends Text
> - CurrencyField extends TextField
> - DropDown extends Combo
> - ....
> - FormComposite extends TableViewer
> - TextColumn extends TableColumn
> - CurrencyColumn extends TableColumn
> - ....
>
> What I'd like to do is the following:
> -------------------------------------
> - User has a View-Containing it's datasources using the DTP-Project
> - User selects one of the queries and drags them to the FormComposite
> => DatabaseModel is created with selected query
> => DatabaseModel is assigned to FormComposite
> - User selects one of fields returned by the query and drags it to the
> form-composite (based on the column type a TextField, CurrencyField,
> ...) is created on the FormComposite
>
>
> Now different Questions arise to me:
> ------------------------------------
> - Does VE provide any hooks to register when the user drags things from
> the DTP-View in the VE area and decide what has to be added?
> - Is it possible "design components" who are JavaBeans but don't are not
> displayable like Text, Composite - my case e.g. the DatabaseModel
> - Is it possible to use JFace-Components like TableViewer, TreeViewer in
> VE.
>
>
> One more thing:
> ---------------
> I read the article about extending VE but I ask my self if it's really
> true because it says one has to create a plugin, add dependency like
> gef, ... which was not necessary for me.
>
> Thanks
>
> Tom
>
> Sri Gunturi wrote:
>
>>Hi Tom,
>> VE 1.1 is based on Eclipse 3.1 and things might not work with
>>Eclipse 3.2M3. It would be great if you could upgrade to VE 1.2M1 and
>>Eclipse 3.2M4 as you get new features and bug fixes.
>>Regards,
>>Sri.
>>
>>Tom Schindl wrote:
>>
>>
>>>Hi Sri,
>>>
>>>if you mean in .metadata/.log. No there's no message at all. I read the
>>>article about extending VE and gave it a try creating a plugin and
>>>adding the desired dependencies but no change.
>>>
>>>I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
>>>manager. Should I upgrade to eclipse M4 and VE 1.2M1?
>>>
>>>Tom
>>>
>>>Sri Gunturi wrote:
>>>
>>>
>>>>Hi Tom,
>>>> Which platform is this happening in? Also are there any exceptions
>>>>in the .log file?
>>>>Regards,
>>>>Sri.
>>>>
>>>>
>>>>Tom Schindl wrote:
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I have a set of custom SWT-Widget which e.g. derived from Text,
>>>>>DropDown, ... . I can select them and drag them to the composite, they
>>>>>are added to the code but are not drawn on the screen.
>>>>>
>>>>>Do my widget have to implement something special to be drawn in VE,
>>>>>some
>>>>>sort of interface or the like?
>>>>>
>>>>>
>>>>>Tom
Re: Custom SWT-Widget added but not drawn [message #611691 is a reply to message #113968] Thu, 22 December 2005 18:40 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Tom,
Since you are doing some binding from visual components to data, I
thought you might be interested in using the JFace binding currently
being developed. Dr.Gili Mendel has created a presentation on how to
achieve this using the new JFace bindings available in 3.2M4 builds. You
can view this presentation at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-ui-home/databinding-proposal/Viewlets/Binders1_viewlet. html
Regards,
Sri.





Tom Schindl wrote:
> Hi,
>
> well did the upgrade and now I can use my own widgets in the VE which is
> really cool. The problem I have faced is that my widget have to placed
> on a special Composite implementing an interface else they throw an
> IllegalArgumentException and I have forgotten todo so. Why are
> exceptions not displayed in the error-log?
>
> I will now take a look at the Properties dialog and how I could pass my
> own special properties. We have implemented a SWT/JFace-DB-Binding now
> we are trying to create a visual designer for Database-Forms.
>
> At the moment I have the following structure:
>
> - FormComposite extends Composite
> - DatabaseModel
> - TextField extends Text
> - CurrencyField extends TextField
> - DropDown extends Combo
> - ....
> - FormComposite extends TableViewer
> - TextColumn extends TableColumn
> - CurrencyColumn extends TableColumn
> - ....
>
> What I'd like to do is the following:
> -------------------------------------
> - User has a View-Containing it's datasources using the DTP-Project
> - User selects one of the queries and drags them to the FormComposite
> => DatabaseModel is created with selected query
> => DatabaseModel is assigned to FormComposite
> - User selects one of fields returned by the query and drags it to the
> form-composite (based on the column type a TextField, CurrencyField,
> ...) is created on the FormComposite
>
>
> Now different Questions arise to me:
> ------------------------------------
> - Does VE provide any hooks to register when the user drags things from
> the DTP-View in the VE area and decide what has to be added?
> - Is it possible "design components" who are JavaBeans but don't are not
> displayable like Text, Composite - my case e.g. the DatabaseModel
> - Is it possible to use JFace-Components like TableViewer, TreeViewer in
> VE.
>
>
> One more thing:
> ---------------
> I read the article about extending VE but I ask my self if it's really
> true because it says one has to create a plugin, add dependency like
> gef, ... which was not necessary for me.
>
> Thanks
>
> Tom
>
> Sri Gunturi wrote:
>
>>Hi Tom,
>> VE 1.1 is based on Eclipse 3.1 and things might not work with
>>Eclipse 3.2M3. It would be great if you could upgrade to VE 1.2M1 and
>>Eclipse 3.2M4 as you get new features and bug fixes.
>>Regards,
>>Sri.
>>
>>Tom Schindl wrote:
>>
>>
>>>Hi Sri,
>>>
>>>if you mean in .metadata/.log. No there's no message at all. I read the
>>>article about extending VE and gave it a try creating a plugin and
>>>adding the desired dependencies but no change.
>>>
>>>I'm using eclipse3.2-M3 and VE 1.1.0 which I installed using the update
>>>manager. Should I upgrade to eclipse M4 and VE 1.2M1?
>>>
>>>Tom
>>>
>>>Sri Gunturi wrote:
>>>
>>>
>>>>Hi Tom,
>>>> Which platform is this happening in? Also are there any exceptions
>>>>in the .log file?
>>>>Regards,
>>>>Sri.
>>>>
>>>>
>>>>Tom Schindl wrote:
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I have a set of custom SWT-Widget which e.g. derived from Text,
>>>>>DropDown, ... . I can select them and drag them to the composite, they
>>>>>are added to the code but are not drawn on the screen.
>>>>>
>>>>>Do my widget have to implement something special to be drawn in VE,
>>>>>some
>>>>>sort of interface or the like?
>>>>>
>>>>>
>>>>>Tom
Re: Custom SWT-Widget added but not drawn [message #647658 is a reply to message #611688] Fri, 07 January 2011 16:14 Go to previous message
Douglas  is currently offline Douglas Friend
Messages: 1
Registered: January 2011
Junior Member
Hi Tom!

Did you manage to get your custom TableColumn (as you stated "TextColumn extends TableColumn") to be displayed on VE?

I'm trying to add a very simple "CustomTableColumn" to a Table on VE, but every time I select my bean, VE actually adds a standard "TableColumn" instead...

I'm sorry ask, but I can't get my "CustomTableColumn" to be shown on VE, and I keep wondering why, or if it is possible at all...

Thanks in advance!
Douglas
Previous Topic:WindowBuilder - a VE replacement?
Next Topic:VE 1.5 release review
Goto Forum:
  


Current Time: Fri Dec 19 21:08:37 GMT 2014

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

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