Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Extending DTP SQL Query builder / statement area
Extending DTP SQL Query builder / statement area [message #757363] Thu, 17 November 2011 23:42 Go to next message
Aditya Wagle is currently offline Aditya WagleFriend
Messages: 7
Registered: November 2011
Junior Member
I am new to DTP and wanted to know if there is a way to reuse the SQL Statement Area.

I am interested in just the SQL Text box in the builder which has content assist. The SQL Builder is an overkill for me.
Is there any way this can be accomplished?

I need to show this in my PropertySection. I did use the SQLStatementArea which has provided me with syntax highlighting. However I also need content assist. Am I using the right control?

Any help is appreciated.

-Aditya
Re: Extending DTP SQL Query builder / statement area [message #801043 is a reply to message #757363] Fri, 17 February 2012 21:07 Go to previous messageGo to next message
Brian Payton is currently offline Brian PaytonFriend
Messages: 152
Registered: July 2009
Senior Member
You should be able to embed the SQL edit area component into another
context, but it's not trivial to do. The main component for the SQL
edit area is the SQLSourceViewer class in the views.source package. You
will need to supply an initialized instance of the SQLDomainModel class,
which provides access to the database connection and parser services
that the SQL edit component uses.

On 11/17/2011 3:42 PM, aditya.wagle wrote:
> I am new to DTP and wanted to know if there is a way to reuse the SQL
> Statement Area.
>
> I am interested in just the SQL Text box in the builder which has
> content assist. The SQL Builder is an overkill for me.
> Is there any way this can be accomplished?
> I need to show this in my PropertySection. I did use the
> SQLStatementArea which has provided me with syntax highlighting. However
> I also need content assist. Am I using the right control?
>
> Any help is appreciated.
>
> -Aditya
Re: Extending DTP SQL Query builder / statement area [message #803353 is a reply to message #801043] Tue, 21 February 2012 08:20 Go to previous message
Aditya Wagle is currently offline Aditya WagleFriend
Messages: 7
Registered: November 2011
Junior Member
Thanks for the pointers. I do agree that it is not trivial.

I did a quick POC and found that this could be done using the tips your provided.


Previous Topic:How to visit QueryStatement
Next Topic:Is anyone working on DTP?
Goto Forum:
  


Current Time: Sun Nov 23 07:45:06 GMT 2014

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

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