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 34444 - Some way to check if Element objects from JavaHierarchyAPI are writeable
Summary: Some way to check if Element objects from JavaHierarchyAPI are writeable
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-18 08:59 UTC by piotrek
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description piotrek 2003-06-18 08:59:46 UTC
It would be easier to have a method to check whether 
Element (from JavaHierarchyAPI) is writeable or not. E.g.:
classElement.isReadOnly() instead of getting its 
DataObject then its primary file and calling its 
isReadOnly method.
Comment 1 _ tboudreau 2003-06-18 09:44:26 UTC
FWIW I could use this for the Class Navigator as well, to
determine if a class is overridable or not.

Piotr, please keep in touch on what you do with parsing
method bodies - I've got some strange ideas for alternate
views of method bodies (see LinesLook in the the class
navigator - crude and nearly useless now, but for editing
huge procedural-code style methods, something that shows
you what bracket nesting level you're in might be useful) -
I'd like to implement something like "Split into method"
so you can select a block of code and move it to its own
method.  To do that, I'll need to figure out what members
are accessed, and their types.
Comment 2 Martin Matula 2004-11-12 13:21:07 UTC
We should add such method to the JMI API.
Comment 3 Jan Becicka 2006-10-26 16:26:28 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 4 Quality Engineering 2007-09-20 10:59:01 UTC
Reorganization of java component