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: | Need api to close an open project | ||
---|---|---|---|
Product: | projects | Reporter: | Vince Kraemer <vkraemer> |
Component: | Generic Infrastructure | Assignee: | Jesse Glick <jglick> |
Status: | CLOSED WONTFIX | ||
Severity: | blocker | CC: | sigalduek |
Priority: | P2 | Keywords: | T9Y |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Vince Kraemer
2004-11-16 18:43:42 UTC
There is intentionally no API to open or close projects programmatically; the manipulation of the open project list is currently treated as a private GUI feature of the projectui module. If you think you need such an API, please provide a detailed use case including desired user model; you may really want something else. My usecase was for a reflective unit test. The test I wanted to write was the following: Create a new project. Close the project. Import a project from the source that was created as part of the project in the "first step". It is not a strong case. It can be achieved by writing functional tests. From a test you can use org.netbeans.modules.project.ui.OpenProjectList. This is not an API and should never be used from a module. I'm also need an api for Open a project. I'm writing end2end module for Mobile Edition. The user (his current main project is mobile project ) needs to choose one web project he'd like to interact with. He gets the list of all web projects that are opened. If his web project is not opened , he will get a JFileChooser with all project's folders. After choosing one - the project should be opened. Add yourself to the CC list of any bug you comment on, or you will never see replies. Please take a look at issue #52258 and add your use cases there if appropriate. |