Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ContainerSelectionDialog - can I show hidden folders?
ContainerSelectionDialog - can I show hidden folders? [message #510221] Tue, 26 January 2010 13:38 Go to next message
Mike Yawn is currently offline Mike Yawn
Messages: 50
Registered: July 2009
Member
I'm using the org.eclipse.ui.dialogs.ContainerSelectionDialog to allow the user to select a folder (IContainer). However, if I initialize the dialog to use a root of the IWorkspaceRoot, I don't see hidden folders (e.g., .metadata) at this level.

The tool I'm writing is a logfile analyzer, so as it happens the .metadata directory is actually the one a user is most likely to want to select at this point, and I can't find any setting in the dialog to make it visible.

Any suggestions -- either in using the ContainerSelectionDialog for this, or using another dialog / mechanism if this isn't the right one. (Actually, it might be better in this case if the selection wasn't constrained to be in the workspace, as it's possible that the logfiles were generated on another system and transferred over, so they could be in C:\temp, the desktop, or just about anywhere ... I could live with forcing the user to copy files into the workspace but if I can remove that limitation it would be even better)

Re: ContainerSelectionDialog - can I show hidden folders? [message #510235 is a reply to message #510221] Tue, 26 January 2010 14:53 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

..metadata doesn't show up as part of the workspace (it's not an IResource).

While I'm not 100% sure on how you would track it down in the general
case, the Error Log view uses API to find the error log:
Platform.getLogFileLocation().toFile();

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:TreeViewer/TableViewer selectAll very slow
Next Topic:occasional NPE when getting resouce from bundle
Goto Forum:
  


Current Time: Fri Aug 29 20:20:25 EDT 2014

Powered by FUDForum. Page generated in 0.02097 seconds