Skip to main content



      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 18:42 Go to next message
Eclipse UserFriend
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 16:07 Go to previous messageGo to next message
Eclipse UserFriend
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 03:20 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 21:51:54 EDT 2025

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

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

Back to the top