DevFaqMultipleProgrammaticEdits

(Difference between revisions)
m (I want to make some programmatic changes to the edited file. How can I do it so one Undo undoes it all?)
Line 3: Line 3:
Create a <tt>Runnable</tt> that will do all of the code generation/munging you want to do.  Pass it to <tt>org.openide.text.NbDocument.runAtomic(doc, runnable)</tt>.
Create a <tt>Runnable</tt> that will do all of the code generation/munging you want to do.  Pass it to <tt>org.openide.text.NbDocument.runAtomic(doc, runnable)</tt>.
 +
 +
-----
 +
 +
Applies to: All Netbeans versions
 +
 +
Platforms: All

Revision as of 13:55, 16 June 2010

I want to make some programmatic changes to the edited file. How can I do it so one Undo undoes it all?

Create a Runnable that will do all of the code generation/munging you want to do. Pass it to org.openide.text.NbDocument.runAtomic(doc, runnable).


Applies to: All Netbeans versions

Platforms: All

Not logged in. Log in, Register

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