This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 41710 - PhysicalView vs. UI spec
Summary: PhysicalView vs. UI spec
Status: CLOSED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks: 40721
  Show dependency tree
 
Reported: 2004-04-05 15:21 UTC by _ pkuzel
Modified: 2006-03-24 10:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 2004-04-05 15:21:28 UTC
I hoped that following snippet creates chooser

  LogicalViewProvider viewProvider = 
    LogicalViews.physicalView(project);
  Node folders = viewProvider.createLogicalView();  

very close to Browse folders dialog
<http://projects.netbeans.org/nonav/buildsys/j2se-project-ui-spec.html#Dialog_Browse_Folders>

but it shows raw FS name for project and it also
shows  nbproject directory (probably also dist,
build).


It's either apparent bug or my misunderatning to
whole issue (documentation is silent).
Comment 1 Jesse Glick 2004-04-07 00:20:23 UTC
We agreed to show nbproject; UI spec needs to be updated I guess.
dist/ and build/ should no longer be shown (Petr patched this I
think). Leaving open for project name issue.
Comment 2 Jesse Glick 2004-04-16 16:29:59 UTC
Petr K., I don't think LogicalViewProvider is what you want for
tasklist. Use org.netbeans.spi.project.Sources (also see
SourceContainers as a fallback).
Comment 3 _ pkuzel 2004-04-21 15:51:09 UTC
Tasklist rewritten to Sources. It gives nearly identical result for
java projects. Just little bit more complex (2 lines vs 50 lines).
Comment 4 Petr Hrebejk 2004-05-10 14:25:53 UTC
I see that it might be more complicated to do it over sources. But
this is the right way. (It is also what the BrowseFolders dialog
does). The physical view is meant for the Files tab. These two things
can differ a lot. (E.g. showing not showing various folders like
nbproject, build etc.) So the way of implementing it using sources is
the only right way.
Comment 5 Marian Mirilovic 2005-07-12 10:09:09 UTC
closed