Documenting UndoRedo.Provider context-aware-undo-redo-180614
authorJaroslav Tulach <jtulach@netbeans.org>
Tue, 29 Jun 2010 10:26:46 +0200
branchcontext-aware-undo-redo-180614
changeset 17365700798124636d
parent 173656 7db19c2e6086
child 173658 157650e16ed9
Documenting UndoRedo.Provider
openide.awt/apichanges.xml
openide.awt/src/org/openide/awt/UndoRedo.java
     1.1 --- a/openide.awt/apichanges.xml	Mon Jun 28 17:37:16 2010 +0200
     1.2 +++ b/openide.awt/apichanges.xml	Tue Jun 29 10:26:46 2010 +0200
     1.3 @@ -50,6 +50,24 @@
     1.4  <apidef name="awt">AWT API</apidef>
     1.5  </apidefs>
     1.6  <changes>
     1.7 +    <change id="UndoRedo.Provider">
     1.8 +        <api name="awt"/>
     1.9 +        <summary>Introducing UndoRedo.Provider</summary>
    1.10 +        <version major="7" minor="25"/>
    1.11 +        <date day="29" month="6" year="2010"/>
    1.12 +        <author login="jtulach"/>
    1.13 +        <compatibility addition="yes" binary="compatible" deletion="no" semantic="compatible"/>
    1.14 +        <description>
    1.15 +            <p>Undo and Redo actions now seek their context for implementation
    1.16 +            of <a href="@TOP@/org/openide/awt/UndoRedo.Provider.html">UndoRedo.Provider</a>.
    1.17 +            If found, it influences their enabled/disabled state. If there is no
    1.18 +            such provider, the implementation fallbacks to currently activated
    1.19 +            <a href="@org-openide-windows@/org/openide/windows/TopComponent.html">TopComponent</a>.
    1.20 +            </p>
    1.21 +        </description>
    1.22 +        <class package="org.openide.awt" name="UndoRedo"/>
    1.23 +        <issue number="180614"/>
    1.24 +    </change>
    1.25      <change id="HIDE_WHEN_DISABLED">
    1.26          <api name="awt"/>
    1.27          <summary><code>HIDE_WHEN_DISABLED</code></summary>
     2.1 --- a/openide.awt/src/org/openide/awt/UndoRedo.java	Mon Jun 28 17:37:16 2010 +0200
     2.2 +++ b/openide.awt/src/org/openide/awt/UndoRedo.java	Tue Jun 29 10:26:46 2010 +0200
     2.3 @@ -126,6 +126,9 @@
     2.4       * @since 7.25
     2.5       */
     2.6      public static interface Provider {
     2.7 +        /** Getter for {@link UndoRedo} implementation associated with this provider.
     2.8 +         * @return non-null implementation
     2.9 +         */
    2.10          public UndoRedo getUndoRedo();
    2.11      }
    2.12