Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 70710 Details for
Bug 187678
Document Open Resource Dialog and Filtered Search dialog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Update patch 005
patch_187678_20070608.txt (text/plain), 2.83 KB, created by
Krzysztof Michalski
on 2007-06-08 12:59:45 EDT
(
hide
)
Description:
Update patch 005
Filename:
MIME Type:
Creator:
Krzysztof Michalski
Created:
2007-06-08 12:59:45 EDT
Size:
2.83 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.platform.doc.isv >Index: guide/dialogs_FilteredItemsSelectionDialog_example.htm >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.platform.doc.isv/guide/dialogs_FilteredItemsSelectionDialog_example.htm,v >retrieving revision 1.4 >diff -u -r1.4 dialogs_FilteredItemsSelectionDialog_example.htm >--- guide/dialogs_FilteredItemsSelectionDialog_example.htm 7 Jun 2007 21:03:17 -0000 1.4 >+++ guide/dialogs_FilteredItemsSelectionDialog_example.htm 8 Jun 2007 16:57:58 -0000 >@@ -28,6 +28,7 @@ > example we will generate our own set of random strings as follows: > <pre> > private static ArrayList resources = new ArrayList(); >+ > static { > generateRescourcesTestCases('A', 'C', 8, ""); //$NON-NLS-1$ > generateRescourcesTestCases('a', 'c', 4, ""); //$NON-NLS-1$ >@@ -91,8 +92,16 @@ > information about how the dialog information is persisted. This method can't > return null, so we'll just return a simple settings object: > <pre> >+ private static final String DIALOG_SETTINGS = "FilteredResourcesSelectionDialogExampleSettings"; >+ > protected IDialogSettings getDialogSettings() { >- return new DialogSettings("TEST"); //$NON-NLS-1$ >+ IDialogSettings settings = Activator.getDefault().getDialogSettings() >+ .getSection(DIALOG_SETTINGS); >+ if (settings == null) { >+ settings = Activator.getDefault().getDialogSettings() >+ .addNewSection(DIALOG_SETTINGS); >+ } >+ return settings; > }</pre></li> > > <li><em>getElementName(Object)</em>: Returns a name for the given >@@ -120,6 +129,14 @@ > > </ul> > </li> >+ >+ <li> >+ At the end you can add title of our search dialog:<pre> >+ public FilteredResourcesSelectionDialogExample(Shell shell) { >+ super(shell, true); >+ setTitle("Filtered Resources Selection Dialog Example"); >+ } >+ </pre></li> > > <li> > The resulting dialog looks as follows: >Index: guide/dialogs_FilteredItemsSelectionDialog_example_advanced.htm >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.platform.doc.isv/guide/dialogs_FilteredItemsSelectionDialog_example_advanced.htm,v >retrieving revision 1.4 >diff -u -r1.4 dialogs_FilteredItemsSelectionDialog_example_advanced.htm >--- guide/dialogs_FilteredItemsSelectionDialog_example_advanced.htm 7 Jun 2007 21:03:17 -0000 1.4 >+++ guide/dialogs_FilteredItemsSelectionDialog_example_advanced.htm 8 Jun 2007 16:57:58 -0000 >@@ -87,7 +87,7 @@ > } > public boolean isSubFilter(ItemsFilter filter) { > ResourceFilter resourceFilter = (ResourceFilter) filter; >- if (onlyLowerCase == resourceFilter.onlyLowerCase) >+ if (onlyLowerCase != resourceFilter.onlyLowerCase) > return false; > return super.isSubFilter(filter); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 187678
:
69680
|
70340
|
70341
|
70342
|
70343
|
70344
|
70384
|
70550
|
70612
|
70614
|
70671
|
70672
|
70673
|
70674
|
70710
|
70713
|
70717
|
70840
|
70858
|
70888
|
70894
|
70986
|
70992