Using Problems View for files outside the workspace [message #297533] |
Mon, 16 January 2006 20:33  |
Eclipse User |
|
|
|
Hi,
I'm looking for the best approach to use the Problems View for files
that are not in the current workspace.
I've tried these 2 approaches so far:
1. Since the only way to add markers to the Problems View is through an
IResource, I just used the workspace root to create the markers. I don't
particularly like this approach in that: (1) the resource information in
the problems view refers to the workspace root, and (2) double-clicking
the item in the problems view will not bring me to where the problem is.
Apparently, this only works for IFile and not just any resource, which
brings me to my 2nd approach.
2. I created linked files and used them (IFile) to create the markers.
This would've been a perfect solution except I don't want the linked
files to show up on the Navigator. So i created a resource filter that
filters out a temp project created solely for the linked files. However,
the user can always disable the filter which isn't what I wanted.
Any ideas?
Thanks in advance,
Jon
|
|
|
|
|
|
|
|
|
|
RCP and workspaces (Was: Creating or getting an IFile from external files) [message #297732 is a reply to message #297679] |
Wed, 18 January 2006 19:57   |
Eclipse User |
|
|
|
Alex Blewitt wrote:
> 1. No.
>
> 2. You can apply a filter to the Navigator. However, the user can disable that filter if they want. Click on the view menu for the navigator and you'll see 'Filters' -- there should be some there for '*.class' and '.*' already. If those are selected, those files will be hidden from the Navigator view. See http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench_advext_resourceFilters.htm for more.
>
> 3. IFiles (and IResources in general) have been a key part in Eclipse since it was created, yes. That's because it started out with a very IDE-specific viewpoint of life. It's been getting better, but currently, an IFile and IResource is required for many things. Linked files were one addition to try and solve that problem; in the future, it may be the case that the runtime is refactored further to avoid dependencies on a specific filing system. Some of that is underway for 3.2, but don't expect the concept of a Workspace to go away any time soon.
>
> Alex.
Thanks, Alex. By the way, would you know if there are any plans to
incorporate workspaces into the RCP?
|
|
|
|
|
|
|
|
|
Re: Creating or getting an IFile from external files (Was: Using [message #297830 is a reply to message #297805] |
Fri, 20 January 2006 08:31  |
Eclipse User |
|
|
|
Originally posted by: automatic.javalobby.org
You can create linked files if you want. That way, Eclipse thinks it's in the workspace, but the contents are stored outside.
However, linked files are specific to the project; look in the .project file. If you're going to do everything with linked files, the .project essentially will become a listing of every file in your project.
In other words, it depends on what solution you're wanting to do. Personally, I'd figure out a way to make a project out of it and give up on the external files; so much functionality doesn't work with them that it's almost not worth bothering at this stage.
Alex.
|
|
|
Powered by
FUDForum. Page generated in 0.31082 seconds