Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Reuse OpenTypeSelectionDialog
Reuse OpenTypeSelectionDialog [message #889342] Tue, 19 June 2012 06:26 Go to next message
Timur Achmetow is currently offline Timur AchmetowFriend
Messages: 38
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 06:39 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
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 11:38 Go to previous messageGo to next message
Timur Achmetow is currently offline Timur AchmetowFriend
Messages: 38
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 13:43 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
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 13:48]

Report message to a moderator

Re: Reuse OpenTypeSelectionDialog [message #889915 is a reply to message #889698] Wed, 20 June 2012 08:52 Go to previous messageGo to next message
Timur Achmetow is currently offline Timur AchmetowFriend
Messages: 38
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 10:20 Go to previous message
Shiyam Hoda is currently offline Shiyam HodaFriend
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 10:21]

Report message to a moderator

Previous Topic:Scroll Bar in JFace Dialog
Next Topic:[Databind] Decorate elements of a JFace viewer (table, tree, ...)
Goto Forum:
  


Current Time: Tue Mar 19 04:08:08 GMT 2024

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

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

Back to the top