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 130626 Details for
Bug 269618
Automatic wildcard support in MANIFEST.MF editor for dependencies
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
patch-abstractElementListSelectionDialog.txt
patch-abstractElementListSelectionDialog.txt (text/plain), 2.10 KB, created by
Lars Vogel
on 2009-04-01 18:09:16 EDT
(
hide
)
Description:
patch-abstractElementListSelectionDialog.txt
Filename:
MIME Type:
Creator:
Lars Vogel
Created:
2009-04-01 18:09:16 EDT
Size:
2.10 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.workbench >Index: Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java,v >retrieving revision 1.20 >diff -u -r1.20 AbstractElementListSelectionDialog.java >--- Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java 13 Nov 2008 08:25:53 -0000 1.20 >+++ Eclipse UI/org/eclipse/ui/dialogs/AbstractElementListSelectionDialog.java 1 Apr 2009 22:09:10 -0000 >@@ -51,6 +51,8 @@ > > private boolean fAllowDuplicates = true; > >+ private boolean fPatternMatch = false; >+ > private Label fMessage; > > protected FilteredList fFilteredList; >@@ -133,6 +135,15 @@ > fAllowDuplicates = allowDuplicates; > } > >+ /** >+ * Specifies whether a wildcard should be added to the filter string >+ * >+ * @param patternMatch >+ */ >+ public void setPatternMatch(boolean patternMatch) { >+ fPatternMatch = patternMatch; >+ } >+ > /** > * Sets the list size in unit of characters. > * @param width the width of the list. >@@ -393,7 +404,11 @@ > > Listener listener = new Listener() { > public void handleEvent(Event e) { >- fFilteredList.setFilter(fFilterText.getText()); >+ String filter = fFilterText.getText(); >+ if (fPatternMatch) { >+ filter = setMatchText(filter); >+ } >+ fFilteredList.setFilter(filter); > } > }; > text.addListener(SWT.Modify, listener); >@@ -484,4 +499,19 @@ > protected ISelectionStatusValidator getValidator() { > return fValidator; > } >+ >+ /** >+ * Adds a leading wildcard to the string >+ * >+ * @return modified string >+ * >+ * @since 3.5 >+ */ >+ >+ private String setMatchText(String match) { >+ if (match.indexOf("*") < 0 & match.indexOf("?") < 0 & match.indexOf(".") < 0) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ >+ match = "*" + match; //$NON-NLS-1$ >+ } >+ return match; >+ } > }
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 Raw
Actions:
View
Attachments on
bug 269618
:
130625
|
130626
|
130627
|
130634
|
130769
|
130918