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.
Summary: | Open action on project folder | ||
---|---|---|---|
Product: | platform | Reporter: | Pavel Buzek <pbuzek> |
Component: | Favorites | Assignee: | Jesse Glick <jglick> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jglick, jrojcek, mslama, phrebejk |
Priority: | P3 | Keywords: | UI |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Pavel Buzek
2005-01-28 05:35:53 UTC
Reasonable. I need more info: I just checked and there are actions Edit and View in both cases. It is the same in Files tab and Projects tab on 'Project Metadata' node. What is 'Open' action? Where could I get it from? I checked current my own dev build from trunk 050418. The "Open" action on project.xml should not open the project file in editor, it should open the project that it represents in IDE (show it in Projects tab of explorer). I see. CCing project people to suggest possible solution(s). Jesse, Petr could you suggest some solution (if any solution is possible)? Thanks. perhaps something like: FileObject f = ... // project.xml OpenProjects.getDefault().open(new Project [] {ProjectManager.findProject (f.getParent())}, false); Pavel what about module dependency? Are you sure core/favorites should depend on Projects UI API???? I don't see any problem with a core/favorites -> projects/projectuiapi dep. Rather than fooling around with project.xml, which is an implementation detail of Ant-based projects, I would suggest that dirs in Favorites which are in fact project folders should be marked with an icon badge, just as they are in the Open Project dialog, and their context menu should start with Open Project <<<the project name here>> --------------------------------------- New > --------------------------------------- .... [as before] Of course the menu item should be disabled in case that project is already open. or maybe create a different loader for project.xml in projectui module? I do not know.. -1 on special loader for project.xml. -1 for loader as well, jesse's solution will work for any kind of project. the loaders solution could clash with other possible project types, for example maven uses project.xml file as well, but in maven2 it's renamed to pom.xml. May I add my -1, too? As Jesse said the project.xml is just an implementation detail of special kind of projects. Notice that we don't refer to the project.xml file or nbproject directory in the GUI. I don't think that we should start doing that. Please either close this as invalid or change the summary to "Open action on project folder". BTW I don't like the favorites->projectUIAPI dependency. Platform users may want to use favourites tab without using project IMO. Ok. It is possible to implement by introducing dependency Favorites on Projects UI API. Before technical review I pass this to HIE for UI review as this is not minor change. Changing summary accordingly. Re. module dep - favorites in not in the platform to begin with. If there is some real request to use it in the platform, I guess we can split off a favorites-projectui bridge as needed. (Or people can simply add projectapi and projectuiapi to the platform - they introduce no GUI on their own and will have no real effect on anything.) 1. In 5.0, Open Project will preselect the project dir corresponding to a closed project which owns the current file selection. Complicated to explain but should do what you want and often reduce the need for this RFE. 2. There is a module contrib/openproject which I think basically addresses this RFE; I will merge its functionality into projectui. It adds to context menu of a closed project folder a menu item like Open Project "Foo" ------------------ <<as before>> It does not badge the project folder; that would be hard to implement in the Favorites tab, but would be reasonable in the Files tab. Something to consider separately I guess. removed * Up-To-Date 1.1 contrib/openproject/.cvsignore removed * Up-To-Date 1.1 contrib/openproject/build.xml removed * Up-To-Date 1.1 contrib/openproject/manifest.mf removed * Up-To-Date 1.1 contrib/openproject/nbproject/.cvsignore removed * Up-To-Date 1.1 contrib/openproject/nbproject/project.properties removed * Up-To-Date 1.1 contrib/openproject/nbproject/project.xml removed * Up-To-Date 1.1 contrib/openproject/src/org/netbeans/modules/openproject/Bundle.properties removed * Up-To-Date 1.1 contrib/openproject/src/org/netbeans/modules/openproject/OpenProjectFolderAction.java removed * Up-To-Date 1.1 contrib/openproject/src/org/netbeans/modules/openproject/layer.xml committed * Up-To-Date 1.17 ide/golden/moduleconfigs.txt committed * Up-To-Date 1.352 nbbuild/build.properties committed * Up-To-Date 1.25 projects/projectui/src/org/netbeans/modules/project/ui/actions/Bundle.properties added * Up-To-Date 1.1 projects/projectui/src/org/netbeans/modules/project/ui/actions/OpenProjectFolderAction.java committed * Up-To-Date 1.65 projects/projectui/src/org/netbeans/modules/project/ui/resources/layer.xml verified |