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 58561 - Review of MoveClassRefactoring API change
Summary: Review of MoveClassRefactoring API change
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2005-05-04 10:25 UTC by Jan Becicka
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Javadoc (29.14 KB, text/html)
2005-05-04 10:31 UTC, Jan Becicka
Details
Proposed change (12.87 KB, patch)
2005-05-04 10:34 UTC, Jan Becicka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2005-05-04 10:25:46 UTC
I'd like to ask you for review of API change in MoveClassRefactoring API. This
API change is needed for rewrite of refactoring D'n'D support. See NbFeature1077
for details.

methods removed:
===============

public void setTarget(FileObject target)
public boolean isInvokedAfterFileMove()
public MoveClassRefactoring(Collection resources, boolean invokedAfterDOMove)

method added:
============
public MoveClassRefactoring(Collection dataObjects, FileObject target) 
public Collection getSelectedDataObjects() {
getTargetPackageName(Resource r) 
getTargetPackageName(FileObject fo)
setTargetClassPathRoot(FileObject target) 


method signatures changed:
=========================

MoveClassRefactoring(FileObject sourceFolder) -> MoveClassRefactoring(FileObject
sourceFolder, boolean isPackage) 
public void setNewPackageName(String name) -> setTargetPackageName(String name) 
getTargetClassPathRoot(Resource r) -> getTargetClassPathRoot()
Comment 1 Jan Becicka 2005-05-04 10:31:05 UTC
Created attachment 21969 [details]
Javadoc
Comment 2 Jan Becicka 2005-05-04 10:34:00 UTC
Created attachment 21970 [details]
Proposed change
Comment 3 Jaroslav Tulach 2005-05-09 13:39:50 UTC
Can you replace DataObject with FileObject in API? If so, please do that. 
 
Do not forget to increase spec version (maybe also impl one as this is 
incompatible change), write apichanges, use @since tag. 
 
Also this module provides friend API, so please use <friend-package> instead 
of <public-package> in project.xml in the same way as for example 
freeform/java does. 
 
 
Comment 4 Jan Becicka 2005-05-11 16:11:09 UTC
> Can you replace DataObject with FileObject in API? If so, please do that. 
Sorry, I cannot. Anyway this is not related to this change. MoveClassRefactoing
used DataObjects before this change.

Rest of issues implemented.
Comment 5 Jan Becicka 2005-05-11 16:11:26 UTC
Fixed.