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 35421 - Provide support for state-aware file operation handlers
Summary: Provide support for state-aware file operation handlers
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-08-13 18:30 UTC by Jan Pokorsky
Modified: 2004-04-19 16:20 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2003-08-13 18:30:51 UTC
Create a new instance of an operation handler for
each project member seems to be an overkill. But
when you share one handler instance per each mime
type you can run into problems.

Usecase:
Let's have a MoveOperation implementation. You
need to perform some postprocessing based on
original filename or location. But in the
MO.afterMove method you have no chance to get the
original file object or any precomputed data
accessible at time before the movement (MO.beforeMove)

Proposal:
The OperationParams class seems to be a good
candidate to  keep status data for handlers during
operations.
Comment 1 Vitezslav Stejskal 2003-08-14 08:28:57 UTC
Agreed.
Comment 2 Vitezslav Stejskal 2003-11-26 12:53:13 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.
Comment 3 Vitezslav Stejskal 2003-11-26 14:57:39 UTC
--> VERIFIED