Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 208740 - "Complete" API
"Complete" API
Status: NEW
Product: utilities
Classification: Unclassified
Component: Diff
All All
: P1 (vote)
Assigned To: Ondrej Vrabec
Depends on:
Blocks: 199151
  Show dependency treegraph
Reported: 2012-02-22 09:55 UTC by Tomas Mysik
Modified: 2014-06-05 12:15 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2012-02-22 09:55:46 UTC
The diff API is kind of incomplete. Scenario:

- have 2 temporary files, none of them come from the IDE
- create editable diff controller for them
- edit the right file
- close the diff's "JComponent" by pressing OK button
- now what??

There is no documented way how to:
- find out whether the "right" file has been changed? and/or
- save the modified document?, and/or
- get the content of the modified "right" file.

Thanks a lot.
Comment 1 Tomas Mysik 2012-02-24 11:55:36 UTC
BTW this [1] is what I need to do in order to use the Diff API for my (not so uncommon, I would say) needs. Please notice that the save() method must be always called (even if user clicks Cancel) otherwise the IDE thinks that there is a file with unsaved changes somewhere.

Comment 2 Quality Engineering 2012-03-21 12:06:13 UTC
Integrated into 'main-golden', will be available in build *201203210400* on (upload may still be in progress)
User: Tomas Mysik <>
Log: Editable diff works now

But really too much complicated, issue #208740 should solve this.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo