Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Glob patterns usable in "Open Element" dialog?(Definition of the glob pattern syntax in the "Open Element" dialog?)
Glob patterns usable in "Open Element" dialog? [message #912619] Thu, 13 September 2012 21:29 Go to next message
Jesse Weinstein is currently offline Jesse Weinstein
Messages: 44
Registered: July 2012
Member
Where is the glob syntax used in the "Open Element" (Ctrl+Shift+T) dialog defined (i.e. in Eclipse source code, on the wiki, etc.)? The dialog says it accepts "?" and "*" -- does it accept any other pattern characters? Is there a way to change the order that results are displayed in? Are there any settings that affect it?
Re: Glob patterns usable in "Open Element" dialog? [message #912713 is a reply to message #912619] Fri, 14 September 2012 03:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Jesse,

No, I don't think it can support regular expressions. I don't think
there is a way to affect the order either. Only the ability to specify
filters to exclude packages you never want to use; see the little menu
triangle in the upper left corner within the dialog to bring of the
filtering preferences?


On 13/09/2012 11:29 PM, Jesse Weinstein wrote:
> Where is the glob syntax used in the "Open Element" (Ctrl+Shift+T)
> dialog defined (i.e. in Eclipse source code, on the wiki, etc.)? The
> dialog says it accepts "?" and "*" -- does it accept any other pattern
> characters? Is there a way to change the order that results are
> displayed in? Are there any settings that affect it?
Re: Glob patterns usable in "Open Element" dialog? [message #913013 is a reply to message #912713] Fri, 14 September 2012 15:42 Go to previous messageGo to next message
Jesse Weinstein is currently offline Jesse Weinstein
Messages: 44
Registered: July 2012
Member
First of all -- thank you for the response! I do appreciate you taking the time; I hope to be able to pass it forward in the future.

I don't see any menu triangle in the Open Element dialog (at least on Indigo 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1 ).

And I have the usual next question -- where is this in the source code; how can I help to improve it?

[Edit: thanks] [Edit: typo]

[Updated on: Fri, 14 September 2012 15:43]

Report message to a moderator

Re: Glob patterns usable in "Open Element" dialog? [message #913273 is a reply to message #913013] Sat, 15 September 2012 05:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Jesse,

It's there in 3.7 for me. It must be there to the far right next to the
line that explains the pattern syntax, underneath the close "x" (in
Windows). Google for "PDE Plugin Spy" to find out about this useful
tool that will help you discover which classes implement which things
you see in the IDE.


On 14/09/2012 5:42 PM, Jesse Weinstein wrote:
> I don't see any menu triangle in the Open Element dialog (at least on
> Indigo 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1 ).
> And I have the usual next question -- where is this in the source
> code; how can I help to improve it?
Re: Glob patterns usable in "Open Element" dialog? [message #915666 is a reply to message #913273] Mon, 17 September 2012 18:03 Go to previous messageGo to next message
Jesse Weinstein is currently offline Jesse Weinstein
Messages: 44
Registered: July 2012
Member
Are you sure you are not talking about the "Open Resource" dialog (which does have the triangle), not the "Open Element" dialog (which, at least for me, doesn't)?

Thanks for the pointer to the PDE Plugin Spy -- www.vogella.com/articles/EclipseCodeAccess/article.html#pluginspy seems like a good explanation of how it's used.
Re: Glob patterns usable in "Open Element" dialog? [message #915853 is a reply to message #915666] Tue, 18 September 2012 04:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Jesse,

For me Ctrl-Shift-T opens up the "Open Type" dialog. For me, Open
Element is Ctrl-Shift-F3. I've never noticed it before. It seems
something provided by Xtext I think, given it's full of indexed models.
What are you using it for?


On 17/09/2012 8:03 PM, Jesse Weinstein wrote:
> Are you sure you are not talking about the "Open Resource" dialog
> (which does have the triangle), not the "Open Element" dialog (which,
> at least for me, doesn't)?
>
> Thanks for the pointer to the PDE Plugin Spy --
> www.vogella.com/articles/EclipseCodeAccess/article.html#pluginspy
> seems like a good explanation of how it's used.
Re: Glob patterns usable in "Open Element" dialog? [message #916176 is a reply to message #915853] Tue, 18 September 2012 16:53 Go to previous messageGo to next message
Jesse Weinstein is currently offline Jesse Weinstein
Messages: 44
Registered: July 2012
Member
Ah! I think we were getting confused between CDT and Java. I'm mostly using CDT -- you must have been using Java. When I don't have a Java-related file open in an editor, the "Open Type..." (and "Open Type in Hierarchy...") items don't even show up.

The menu spy returns the following, on my system, for the various menu items we've been talking about (with a Java class file open):


  • Open Element...
    The active contribution item identifier:
    org.eclipse.cdt.ui.actions.OpenType
    The active action set identifier:
    org.eclipse.cdt.ui.NavigationActionSet
    The active action definition identifier:
    org.eclipse.cdt.ui.navigate.opentype
  • Open Type in Hierarchy...
    The active contribution item identifier:
    org.eclipse.cdt.ui.actions.openTypeInHierarchy
    The active action set identifier:
    org.eclipse.cdt.ui.NavigationActionSet
    The active action definition identifier:
    org.eclipse.cdt.ui.navigate.open.type.in.hierarchy
  • Open Element in Call Hierarchy...
    The active contribution item identifier:
    org.eclipse.cdt.ui.actions.openElementInCallHierarchy
    The active action set identifier:
    org.eclipse.cdt.ui.NavigationActionSet
    The active action definition identifier:
    org.eclipse.cdt.ui.navigate.open.element.in.call.hierarchy
  • Open Type...
    The active contribution item identifier:
    openType
    The active action set identifier:
    org.eclipse.jdt.ui.JavaActionSet
    The active action definition identifier:
    org.eclipse.jdt.ui.navigate.open.type
  • Open Type in Hierarchy...
    The active contribution item identifier:
    openTypeInHierarchy
    The active action set identifier:
    org.eclipse.jdt.ui.JavaActionSet
    The active action definition identifier:
    org.eclipse.jdt.ui.navigate.open.type.in.hierarchy
  • Open Resource...
    The active contribution item identifier:
    org.eclipse.ui.OpenWorkspaceFile
    The active action set identifier:
    org.eclipse.ui.NavigateActionSet
    The active action definition identifier:
    org.eclipse.ui.navigate.openResource

Re: Glob patterns usable in "Open Element" dialog? [message #916206 is a reply to message #916176] Tue, 18 September 2012 18:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Jesse,

Yes, that's what I assumed. It's best to ask about CDT on the CDT forum.

On 18/09/2012 6:53 PM, Jesse Weinstein wrote:
> Ah! I think we were getting confused between CDT and Java. I'm mostly
> using CDT -- you must have been using Java. When I don't have a
> Java-related file open in an editor, the "Open Type..." (and "Open
> Type in Hierarchy...") items don't even show up.
>
> The menu spy returns the following, on my system, for the various menu
> items we've been talking about (with a Java class file open):
>
>
> Open Element... The active contribution item identifier:
> org.eclipse.cdt.ui.actions.OpenType
> The active action set identifier:
> org.eclipse.cdt.ui.NavigationActionSet
> The active action definition identifier:
> org.eclipse.cdt.ui.navigate.opentype
> Open Type in Hierarchy...
> The active contribution item identifier:
> org.eclipse.cdt.ui.actions.openTypeInHierarchy
> The active action set identifier:
> org.eclipse.cdt.ui.NavigationActionSet
> The active action definition identifier:
> org.eclipse.cdt.ui.navigate.open.type.in.hierarchy
> Open Element in Call Hierarchy...
> The active contribution item identifier:
> org.eclipse.cdt.ui.actions.openElementInCallHierarchy
> The active action set identifier:
> org.eclipse.cdt.ui.NavigationActionSet
> The active action definition identifier:
> org.eclipse.cdt.ui.navigate.open.element.in.call.hierarchy
> Open Type...
> The active contribution item identifier:
> openType
> The active action set identifier:
> org.eclipse.jdt.ui.JavaActionSet
> The active action definition identifier:
> org.eclipse.jdt.ui.navigate.open.type
> Open Type in Hierarchy...
> The active contribution item identifier:
> openTypeInHierarchy
> The active action set identifier:
> org.eclipse.jdt.ui.JavaActionSet
> The active action definition identifier:
> org.eclipse.jdt.ui.navigate.open.type.in.hierarchy
> Open Resource...
> The active contribution item identifier:
> org.eclipse.ui.OpenWorkspaceFile
> The active action set identifier:
> org.eclipse.ui.NavigateActionSet
> The active action definition identifier:
> org.eclipse.ui.navigate.openResource
>
>
Re: Glob patterns usable in "Open Element" dialog? [message #916207 is a reply to message #916206] Tue, 18 September 2012 18:17 Go to previous message
Jesse Weinstein is currently offline Jesse Weinstein
Messages: 44
Registered: July 2012
Member
I hadn't realized (till now) that I was asking a CDT-specific question. Wink
Previous Topic:Simple Question
Next Topic:Write Watch Variable
Goto Forum:
  


Current Time: Sun Sep 21 20:11:10 GMT 2014

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

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