Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
..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: Thu Jul 17 02:58:09 EDT 2025

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

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

Back to the top