Re: Delete Project behavior
Jesse Glick <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Organization | Sun Microsystems / NetBeans |
| Message-ID | <[email protected]> |
[BTW please do not cross-post to multiple lists. nbui is the right list,
I think.]
Edwin Goei wrote:
> So the proposal is to change the meaning of the checkbox to "rm -rf $projectdir".
I agree that if you ask to delete a project, you probably intend to
delete the whole project directory. I am always being surprised by
Delete Project leaving all kinds of things around for no apparent
reason. And the "also delete sources" checkbox has always mystified me.
I asked to delete the project. A project is an IDE's way of managing
program sources. What am I being asked, exactly?
Let me propose a completely different UI that I think would be much
clearer. The dialog would contain a forest (list of trees) which would
look a bit like the Files tab if just that project were open. Each root
corresponds to one top-level directory and is labelled with the full
path to that dir. For projects made from scratch there would be just one
root; for projects from existing sources you would often have one entry
for the NB metadata and one for the existing sources.
The trees would be checkbox trees, i.e. each node can have states
checked (delete entirely), unchecked (leave alone), half-checked (look
at children to see which parts will be deleted).
By default, the project directory (parent dir of nbproject) would be
checked, except that any nested project directories would be unchecked.
External source roots would by default be unchecked.
Ignorable dirs (build, nbproject/private, ...) would always be deleted
and would not be displayed at all.
Examples:
[X] /home/jglick/NetBeansProjects/quick-experiment
[X] nbproject
[X] src
[X] test
[X] build.xml
[X] /home/jglick/NetBeansProjects/jedit
[X] nbproject
[X] build.xml
[ ] /sources/jedit/src
[ ] org
[/] /sources/nb_all/contrib/failed-experiment
[X] nbproject
[X] src
[X] release
[X] build.xml
[X] manifest.mf
[ ] another-module
-J.
--
[email protected] netbeans.org ant.apache.org hudson.dev.java.net
http://google.com/search?q=e%5E%28pi*i%29%2B1