Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Can "Open Resource" ONLY find ".js" files, and not ".jsp" or ".js
Can "Open Resource" ONLY find ".js" files, and not ".jsp" or ".js [message #1086057] Tue, 13 August 2013 18:56 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
Is there any way for the "Open Resource" dialog to ONLY find the ".js" files, and not ".jsp" or ".jspx" or ".js?*" in general?

There was a question on StackOverflow about this a while ago, which was allegedly answered, but the solution doesn't work, at least not on Eclipse Indigo.
Re: Can "Open Resource" ONLY find ".js" files, and not ".jsp" or " [message #1086474 is a reply to message #1086057] Wed, 14 August 2013 08:46 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
Try "*js " or "*js<". (exclude "." and append " " or "<")
(this doesn't suppress .ajs or such though...)

---
source:
org.eclipse.ui.dialogs.FilteredResourcesSelectionDialog.ResourceFilter
org.eclipse.ui.dialogs.SearchPattern
Re: Can "Open Resource" ONLY find ".js" files, and not ".jsp" or & [message #1086703 is a reply to message #1086474] Wed, 14 August 2013 15:36 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
Those both work.

Is this mechanism described in any user-level documentation? I never would have guessed this. You'd think some hint to this would go along with the current "(? = any character, * = any string)" hint in the dialog.
Re: Can "Open Resource" ONLY find ".js" files, and not ".jsp" or & [message #1087393 is a reply to message #1086703] Thu, 15 August 2013 15:17 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
I filed this bug to improve the on-screen hints for this. It also turns out that the fact that it does NOT work for "*.js<" is apparently a bug.
Previous Topic:Java and AD connection
Next Topic:Eclipse not working!
Goto Forum:
  


Current Time: Thu Apr 25 17:39:06 GMT 2024

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

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

Back to the top