Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Reuse OpenTypeSelectionDialog
Reuse OpenTypeSelectionDialog [message #889342] Tue, 19 June 2012 02:26 Go to next message
Timur Achmetow is currently offline Timur Achmetow
Messages: 36
Registered: April 2012
Member
Hello,

I want to reuse the OpenTypeSelectionDialog (Ctrl+Shift+T) from the JDT-Plugin (org.eclipse.jdt.internal.ui).

I want to use the whole dialog with his logic and change only the data provider (dialog should search in my data). What do you think? Is this possible or is the expense is too high and it makes sense to create it from scratch.
Re: Reuse OpenTypeSelectionDialog [message #889351 is a reply to message #889342] Tue, 19 June 2012 02:39 Go to previous messageGo to next message
Jan Krakora is currently offline Jan Krakora
Messages: 402
Registered: December 2009
Location: Prague
Senior Member
Hi Tim,

I think you can easily use the org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
Re: Reuse OpenTypeSelectionDialog [message #889589 is a reply to message #889351] Tue, 19 June 2012 07:38 Go to previous messageGo to next message
Timur Achmetow is currently offline Timur Achmetow
Messages: 36
Registered: April 2012
Member
Quote:

I think you can easily use the org.eclipse.ui.dialogs.FilteredItemsSelectionDialog


Okay ... and what I have to do, if I want to change the data provider to my own?
Re: Reuse OpenTypeSelectionDialog [message #889698 is a reply to message #889589] Tue, 19 June 2012 09:43 Go to previous messageGo to next message
Jan Krakora is currently offline Jan Krakora
Messages: 402
Registered: December 2009
Location: Prague
Senior Member
Take a look at this article
http://blog.eclipse-tips.com/2008/10/extending-filtereditemsselectiondialog.html
or
http://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.isv/guide/dialogs_FilteredItemsSelectionDialog.htm

[Updated on: Tue, 19 June 2012 09:48]

Report message to a moderator

Re: Reuse OpenTypeSelectionDialog [message #889915 is a reply to message #889698] Wed, 20 June 2012 04:52 Go to previous messageGo to next message
Timur Achmetow is currently offline Timur Achmetow
Messages: 36
Registered: April 2012
Member
Ohh yes! The tutorial from Prakash it's really great!

Thank you Jan!
Re: Reuse OpenTypeSelectionDialog [message #894737 is a reply to message #889342] Tue, 10 July 2012 06:20 Go to previous message
Shiyam Hoda is currently offline Shiyam Hoda
Messages: 4
Registered: June 2012
Junior Member
I have a filtered content selection dialog, and in the view menu I have checkboxes that adds an extra filter. I added a selection listener to the checkbox so that whenever the user selects/deselects it, I want the dialog to empty its content and re-call fillContentProvider().

Is there any way to force the dialog to call fillContentProvider().
Any idea how it should be done.

[Updated on: Tue, 10 July 2012 06:21]

Report message to a moderator

Previous Topic:TreeViewer EditElement Question
Next Topic:TextEditor with editable syntax highlighting
Goto Forum:
  


Current Time: Sun May 19 20:17:55 EDT 2013

Powered by FUDForum. Page generated in 0.01746 seconds