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 52065 - PasteAction#setPasteTypes method should be deprecated
Summary: PasteAction#setPasteTypes method should be deprecated
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2004-12-03 21:13 UTC by Peter Zavadsky
Modified: 2008-12-22 23:57 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 Peter Zavadsky 2004-12-03 21:13:27 UTC
I think it should be deprecated (it's usage
especially when clearing the paste types, while
deactivating component, could lead to inconsistent
state), and the recommended should be used the
context provided by ActionMap.

See the deprecation of
CallbackSystemAction#setActionPerformer, I think
the same resoning applies to
PasteAction#setPasteTypes.
Comment 1 Jiri Rechtacek 2004-12-20 15:53:36 UTC
Checking in src/org/openide/actions/PasteAction.java;
/cvs/openide/src/org/openide/actions/PasteAction.java,v  <-- 
PasteAction.java
new revision: 1.55; previous revision: 1.54
done