Bug 210807 - Allow user to select project for generating implementation
Allow user to select project for generating implementation
Status: NEW
Product: editor
Classification: Unclassified
Component: Hints & Annotations
7.2
All All
: P3 with 1 vote (vote)
: TBD
Assigned To: Dusan Balek
issues@editor
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-06 10:17 UTC by Geertjan Wielenga
Modified: 2012-04-06 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2012-04-06 10:17:02 UTC
In 7.2, it is possible to generate an implementation from the interface declaration, but it isn't possible to -- in the context of a NetBeans Platform application -- specify a different module where the class should generated.
Comment 1 Jan Lahoda 2012-04-06 10:31:41 UTC
Not quite sure if the increased complexity of the UI for the presumably more common case overweights the advantages for the less common more complex case. Especially given that creating a new class through the standard means and adding the supertype is not really difficult by any means.
Comment 2 Jesse Glick 2012-04-06 12:20:51 UTC
I tend to agree that this would be overkill. What if the selected project does not actually have a dependency on the project defining the interface?
Comment 3 gbivins 2012-04-06 14:43:41 UTC
This situation seems similar to a "Refactor Move" operation which I would say the UI already handles sufficiently. If the target project doesn't depend on the something that the moved class depends on, it appropriately notifies the developer and it is then the developer's responsibility to handle it. Not sure who the intended user this feature is targeted for, but as a NBP dev I would find this more useful if I could at least point the generation to another project module.

 Otherwise, the feature in general is "overkill" because it is trivial(because NB java editor is awesome!) to type the few key strokes for "implements" after any class and get the list of available (via dependencies) interfaces to implement.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo