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 52016 - Final refactoring review
Summary: Final refactoring review
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords: API_REVIEW
Depends on: 52186 52202 54009
Blocks: 53921
  Show dependency tree
 
Reported: 2004-12-02 14:41 UTC by Martin Matula
Modified: 2007-04-03 18:02 UTC (History)
5 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
arch. answers (36.98 KB, text/html)
2004-12-02 14:42 UTC, Martin Matula
Details
Current coverage by packages (thanks to mkubec) (5.11 KB, patch)
2005-01-25 18:31 UTC, Jaroslav Tulach
Details | Diff
Current coverage by packages (thanks to mkubec) (5.11 KB, text/html)
2005-01-25 18:31 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matula 2004-12-02 14:41:14 UTC
I would like to ask for an inception review of
refactoring module. Arch. answers will be
attached. Since this will be an inception review,
we do not provide javadocs, because the API/SPI is
still under construction. We would like to discuss
possible end-results (of the API/SPI design) at
the dev-rev meeting.
Comment 1 Martin Matula 2004-12-02 14:42:29 UTC
Created attachment 19102 [details]
arch. answers
Comment 2 Jaroslav Tulach 2004-12-02 16:04:58 UTC
Inception review will be lead by Pavel and will be on Wednesday Dec 8.
Reviewers with vote include me, Tomas and newly also Martin Grebac.
Comment 3 Pavel Buzek 2004-12-07 10:20:22 UTC
I have only one comment:

PB01 Dependency on Java module and MDR.

Part of the API and the whole SPI could be independent on Java and MDR
which would allow to use it for other kinds of refactoring (e.g. JSP).
Did you consider that?
From API this is ChangeParameters, Problem and RefactoringSupport,
except it uses AbstractRefactoring and
org.netbeans.modules.javacore.internalapi.ProgressListener. Perhaps
there should be a higher abstraction of refactoring then
AbstractRefactoring, indepdent from Java. Then JavaRefactoring can
subclass it. As for the ProgressListener this is a part of javacore
that has not been reviewd yet, right? It seems like this has nothing
to do with Java or MDR either...
Comment 4 Martin Grebac 2004-12-07 10:31:55 UTC
1) to above: If I understod the comment correctly, then I think there
are more problems with this - a refactoring plugin must register as an
external change to make undo/redo work, but this is from javacore
internalapi package.

2) order of refactorings doesn't seem to be guaranteed, which makes
the plugins more complicated - (e.g. rename package - will you first
move the file and then let plugin do something with it, or vice versa?)
Comment 5 Martin Matula 2004-12-07 10:42:37 UTC
To Pavel: Yes, we are in process of making the refactoring API
independent of JMI. Honza B. is working on rewriting the J2SE
refactorings to be just plugins to the generic refactorings (in a
similar way the web-apps refactorings are implemented).
Comment 6 Jan Becicka 2005-01-18 08:41:30 UTC
Refactoring API is prepared for final review (I hope :)
* J2SE Refactorings are rewritten to plugins.
* Arch. document updated (available at usual location refactoring/arch).
* Javadoc can be built by "javadoc" build target.
Comment 7 Pavel Buzek 2005-01-18 16:07:42 UTC
Let's have the fianl review meeting on 1/25. Send issues to nbdev or
add comments to this issue. Thanks.
Comment 8 Jan Becicka 2005-01-25 07:54:05 UTC
See issue 53921
Comment 9 Jaroslav Tulach 2005-01-25 18:31:16 UTC
Created attachment 19959 [details]
Current coverage by packages (thanks to mkubec)
Comment 10 Jaroslav Tulach 2005-01-25 18:31:21 UTC
Created attachment 19960 [details]
Current coverage by packages (thanks to mkubec)
Comment 11 Jaroslav Tulach 2005-01-25 18:34:26 UTC
Thanks to Milan we have results of code coverage. Especially the
org.netbeans.modules.refactoring.api.ui in undertested and as written
on nbdev@ it should have tests - it uses some kind of Lookup API which
is easy to be broken, so please provide some tests.
Comment 12 Jan Becicka 2005-01-26 06:13:27 UTC
Package org.netbeans.modules.refactoring.api.ui is undertested,
because this functionality was requested on 1/24 and implemented on 1/25
Comment 13 Pavel Buzek 2005-01-26 14:14:49 UTC
final opinion posted at:

http://openide.netbeans.org/tutorial/reviews/opinions_52016.html

the review has been accepted with TCRs/TCAs