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.

View | Details | Raw Unified | Return to bug 210691
Collapse All | Expand All

(-)versioning.core/nbproject/project.xml (+5 lines)
Lines 220-225 Link Here
220
                        <compile-dependency/>
220
                        <compile-dependency/>
221
                    </test-dependency>
221
                    </test-dependency>
222
                    <test-dependency>
222
                    <test-dependency>
223
                        <code-name-base>org.netbeans.modules.versioning.ui</code-name-base>
224
                        <compile-dependency/>
225
                        <test/>
226
                    </test-dependency>
227
                    <test-dependency>
223
                        <code-name-base>org.openide.filesystems</code-name-base>
228
                        <code-name-base>org.openide.filesystems</code-name-base>
224
                        <compile-dependency/>
229
                        <compile-dependency/>
225
                    </test-dependency>
230
                    </test-dependency>
(-)versioning.core/src/org/netbeans/modules/versioning/core/SPIAccessor.java (+6 lines)
Lines 47-52 Link Here
47
47
48
import java.util.*;
48
import java.util.*;
49
import org.netbeans.modules.versioning.core.api.VCSFileProxy;
49
import org.netbeans.modules.versioning.core.api.VCSFileProxy;
50
import org.netbeans.modules.versioning.core.spi.VCSHistoryProvider;
51
import org.netbeans.modules.versioning.core.spi.VCSHistoryProvider.HistoryEntry;
50
import org.openide.filesystems.FileObject;
52
import org.openide.filesystems.FileObject;
51
53
52
/**
54
/**
Lines 71-74 Link Here
71
    
73
    
72
    public abstract VCSContext createContextForFiles(Set<VCSFileProxy> files, Set<? extends FileObject> originalFiles);
74
    public abstract VCSContext createContextForFiles(Set<VCSFileProxy> files, Set<? extends FileObject> originalFiles);
73
    
75
    
76
    public abstract Object[] getDelegateEntry(VCSHistoryProvider.HistoryEntry entry);
77
78
    public abstract void setDelegateEntry(HistoryEntry entry, Object[] lookupObjects);
79
74
}
80
}
(-)versioning.core/src/org/netbeans/modules/versioning/core/spi/SPIAccessorImpl.java (+12 lines)
Lines 46-51 Link Here
46
import java.util.*;
46
import java.util.*;
47
import org.netbeans.modules.versioning.core.SPIAccessor;
47
import org.netbeans.modules.versioning.core.SPIAccessor;
48
import org.netbeans.modules.versioning.core.api.VCSFileProxy;
48
import org.netbeans.modules.versioning.core.api.VCSFileProxy;
49
import org.netbeans.modules.versioning.core.spi.VCSHistoryProvider.HistoryEntry;
49
import org.openide.filesystems.FileObject;
50
import org.openide.filesystems.FileObject;
50
51
51
/**
52
/**
Lines 55-62 Link Here
55
 */
56
 */
56
final class SPIAccessorImpl extends SPIAccessor {
57
final class SPIAccessorImpl extends SPIAccessor {
57
58
59
58
    @Override
60
    @Override
59
    public VCSContext createContextForFiles(Set<VCSFileProxy> files, Set<? extends FileObject> originalFiles) {
61
    public VCSContext createContextForFiles(Set<VCSFileProxy> files, Set<? extends FileObject> originalFiles) {
60
        return VCSContext.forFiles(files, originalFiles);
62
        return VCSContext.forFiles(files, originalFiles);
61
    }
63
    }
64
    
65
    @Override
66
    public void setDelegateEntry(HistoryEntry entry, Object[] lookupObjects) {
67
        entry.setLookupObjects(lookupObjects);
62
}
68
}
69
70
    @Override
71
    public Object[] getDelegateEntry(HistoryEntry entry) {
72
        return entry.getLookupObjects();
73
    }
74
}
(-)versioning.core/src/org/netbeans/modules/versioning/core/spi/VCSHistoryProvider.java (-1 / +15 lines)
Lines 278-284 Link Here
278
        }
278
        }
279
        
279
        
280
        /**
280
        /**
281
         * Returns actions which might be called for this HistoryEntry.
281
         * Returns actions which might be called for this HistoryEntry as it is presented 
282
         * in the history view.<br>
283
         * It is ensured that if the returned actions are a {@link ContextAwareAction}, they 
284
         * will be provided with a context containing the nodes selected in the history view.
285
         * The lookup of those nodes will again contain the relevant {@link HistoryEntry} 
286
         * and {@link java.io.File}-s for which the action should be invoked.
282
         * 
287
         * 
283
         * @return a field of actions
288
         * @return a field of actions
284
         */        
289
         */        
Lines 298-305 Link Here
298
                revisionProvider.getRevisionFile(originalFile, revisionFile);
303
                revisionProvider.getRevisionFile(originalFile, revisionFile);
299
            }
304
            }
300
        }
305
        }
306
307
        private Object[] lookupObjects;
308
        void setLookupObjects(Object[] lookupObjects) {
309
            this.lookupObjects = lookupObjects;
301
    }
310
    }
302
311
312
        Object[] getLookupObjects() {
313
            return lookupObjects;
314
        }
315
    }
316
303
    /**
317
    /**
304
     * Adds a listener for history change events.
318
     * Adds a listener for history change events.
305
     * 
319
     * 
(-)versioning.core/src/org/netbeans/modules/versioning/core/util/Utils.java (-4 / +16 lines)
Lines 43-54 Link Here
43
43
44
import java.beans.PropertyChangeListener;
44
import java.beans.PropertyChangeListener;
45
import java.io.File;
45
import java.io.File;
46
import java.util.Date;
46
import java.util.prefs.Preferences;
47
import java.util.prefs.Preferences;
47
import org.netbeans.modules.versioning.core.FlatFolder;
48
import javax.swing.Action;
48
import org.netbeans.modules.versioning.core.VcsVisibilityQueryImplementation;
49
import org.netbeans.modules.versioning.core.*;
49
import org.netbeans.modules.versioning.core.VersioningConfig;
50
import org.netbeans.modules.versioning.core.VersioningManager;
51
import org.netbeans.modules.versioning.core.api.VCSFileProxy;
50
import org.netbeans.modules.versioning.core.api.VCSFileProxy;
51
import org.netbeans.modules.versioning.core.spi.VCSHistoryProvider;
52
import org.netbeans.modules.versioning.core.spi.VCSHistoryProvider.HistoryEntry;
53
import org.netbeans.modules.versioning.core.spi.VCSHistoryProvider.MessageEditProvider;
54
import org.netbeans.modules.versioning.core.spi.VCSHistoryProvider.RevisionProvider;
52
import org.netbeans.modules.versioning.core.util.VCSSystemProvider.VersioningSystem;
55
import org.netbeans.modules.versioning.core.util.VCSSystemProvider.VersioningSystem;
53
56
54
/**
57
/**
Lines 190-194 Link Here
190
        VersioningManager.getInstance().removePropertyChangeListener(l);
193
        VersioningManager.getInstance().removePropertyChangeListener(l);
191
    }
194
    }
192
    
195
    
196
    public static Object[] getDelegateEntry(VCSHistoryProvider.HistoryEntry entry) {
197
        return SPIAccessor.IMPL.getDelegateEntry(entry);
198
    }
193
    
199
    
200
    public static HistoryEntry createHistoryEntry(VCSFileProxy[] proxies, Date dateTime, String message, String username, String usernameShort, String revision, String revisionShort, Action[] actions, RevisionProvider rp, MessageEditProvider mep, Object[] lookupObjects) {
201
        HistoryEntry entry = new HistoryEntry(proxies, dateTime, message, username, usernameShort, revision, revisionShort, actions, rp, mep);
202
        SPIAccessor.IMPL.setDelegateEntry(entry, lookupObjects);
203
        return entry;
194
}
204
}
205
    
206
}
(-)versioning.core/test/unit/src/org/netbeans/modules/versioning/core/spi/VCSHistoryTest.java (+29 lines)
Lines 46-51 Link Here
46
46
47
import java.io.File;
47
import java.io.File;
48
import java.io.IOException;
48
import java.io.IOException;
49
import java.util.Collection;
49
import java.util.Date;
50
import java.util.Date;
50
import javax.swing.Action;
51
import javax.swing.Action;
51
import org.netbeans.junit.NbTestCase;
52
import org.netbeans.junit.NbTestCase;
Lines 56-61 Link Here
56
import org.netbeans.modules.versioning.core.util.VCSSystemProvider;
57
import org.netbeans.modules.versioning.core.util.VCSSystemProvider;
57
import org.netbeans.modules.versioning.spi.testvcs.TestVCS;
58
import org.netbeans.modules.versioning.spi.testvcs.TestVCS;
58
import org.netbeans.modules.versioning.spi.testvcs.TestVCSHistoryProvider;
59
import org.netbeans.modules.versioning.spi.testvcs.TestVCSHistoryProvider;
60
import org.netbeans.modules.versioning.ui.history.HistoryTestKit;
61
import org.openide.nodes.Node;
59
62
60
import org.openide.util.Lookup;
63
import org.openide.util.Lookup;
61
import org.openide.util.test.MockLookup;
64
import org.openide.util.test.MockLookup;
Lines 202-207 Link Here
202
        assertTrue(TestVCSHistoryProvider.instance.revisionProvided);
205
        assertTrue(TestVCSHistoryProvider.instance.revisionProvided);
203
    }
206
    }
204
    
207
    
208
    public void testHistoryNodesProperlySetup() throws IOException {
209
        File f1 = new File(dataRootDir, "workdir/root-test-versioned/file1" + TestVCSHistoryProvider.FILE_PROVIDES_REVISIONS_SUFFIX);
210
        f1.createNewFile();
211
        VCSFileProxy proxy1 = VCSFileProxy.createFileProxy(f1);
212
        File f2 = new File(dataRootDir, "workdir/root-test-versioned/file2" + TestVCSHistoryProvider.FILE_PROVIDES_REVISIONS_SUFFIX);
213
        f2.createNewFile();
214
        VCSFileProxy proxy2 = VCSFileProxy.createFileProxy(f2);
215
        VCSSystemProvider.VersioningSystem pvs = Utils.getOwner(proxy1);
216
        assertNotNull(pvs);
217
        org.netbeans.modules.versioning.core.spi.VCSHistoryProvider php = pvs.getVCSHistoryProvider();
218
        assertNotNull(php);
219
220
        org.netbeans.modules.versioning.core.spi.VCSHistoryProvider.HistoryEntry[] phistory = php.getHistory(new VCSFileProxy[] {proxy1, proxy2}, null);
221
        assertNotNull(phistory);
222
        assertTrue(phistory.length > 0);
223
        
224
        Node node = HistoryTestKit.createHistoryNode(phistory[0]);
225
        assertNotNull(node.getLookup().lookup(HistoryEntry.class));
226
        
227
        Collection<? extends VCSFileProxy> proxies = node.getLookup().lookupAll(VCSFileProxy.class);
228
        assertNotNull(proxies);
229
        assertTrue(proxies.size() >= 2);
230
        assertTrue(proxies.contains(proxy1));
231
        assertTrue(proxies.contains(proxy2));
232
    }
233
    
205
    private void deleteRecursively(File f) {
234
    private void deleteRecursively(File f) {
206
        if(f.isFile()) {
235
        if(f.isFile()) {
207
            f.delete();
236
            f.delete();
(-)versioning.core/test/unit/src/org/netbeans/modules/versioning/spi/testvcs/TestVCSHistoryProvider.java (-5 / +2 lines)
Lines 71-81 Link Here
71
    
71
    
72
    @Override
72
    @Override
73
    public HistoryEntry[] getHistory(VCSFileProxy[] files, Date fromDate) {
73
    public HistoryEntry[] getHistory(VCSFileProxy[] files, Date fromDate) {
74
        for (VCSFileProxy file : files) {
74
        if(files[0].getName().endsWith(FILE_PROVIDES_REVISIONS_SUFFIX)) {
75
            if(file.getName().endsWith(FILE_PROVIDES_REVISIONS_SUFFIX)) {
76
                return new VCSHistoryProvider.HistoryEntry[] {
75
                return new VCSHistoryProvider.HistoryEntry[] {
77
                        new VCSHistoryProvider.HistoryEntry(
76
                        new VCSHistoryProvider.HistoryEntry(
78
                            new VCSFileProxy[] {file}, 
77
                        files, 
79
                            new Date(System.currentTimeMillis()), 
78
                            new Date(System.currentTimeMillis()), 
80
                            "msg", 
79
                            "msg", 
81
                            "user", 
80
                            "user", 
Lines 84-92 Link Here
84
                            "1234567890", 
83
                            "1234567890", 
85
                            new Action[0], 
84
                            new Action[0], 
86
                            this)};
85
                            this)};
87
                
88
            }
86
            }
89
        }
90
        return history;
87
        return history;
91
    }
88
    }
92
89
(-)versioning/apichanges.xml (+15 lines)
Lines 111-116 Link Here
111
        
111
        
112
        <change>
112
        <change>
113
            <api name="versioning_spi"/>
113
            <api name="versioning_spi"/>
114
            <summary>Support ContextAwareActions</summary>
115
            <version major="1" minor="31"/>
116
            <date day="11" month="4" year="2012"/>
117
            <author login="tstupka"/>
118
            <compatibility addition="yes"/>
119
            <description>
120
                Ensure that <code>ContextAwareAction</code>-s provided via <code>VCSHistoryProvider.HistoryEntry.getActions()</code> 
121
                are created with a context containing the selected nodes in a files editor history tab. Those nodes than will have 
122
                the relevant <code>HistoryEntry</code> and files in their lookup.
123
            </description>
124
            <class package="org.netbeans.modules.versioning.spi" name="VCSHistoryProvider"/>
125
            <issue number="210691"/>
126
        </change>
127
        <change>
128
            <api name="versioning_spi"/>
114
            <summary>Added VCSHistoryProvider</summary>
129
            <summary>Added VCSHistoryProvider</summary>
115
            <version major="1" minor="29"/>
130
            <version major="1" minor="29"/>
116
            <date day="30" month="1" year="2012"/>
131
            <date day="30" month="1" year="2012"/>
(-)versioning/nbproject/project.xml (-1 / +6 lines)
Lines 148-160 Link Here
148
                        <compile-dependency/>
148
                        <compile-dependency/>
149
                    </test-dependency>
149
                    </test-dependency>
150
                    <test-dependency>
150
                    <test-dependency>
151
                        <code-name-base>org.netbeans.modules.nbjunit</code-name-base>
152
                        <compile-dependency/>
153
                    </test-dependency>
154
                    <test-dependency>
151
                        <code-name-base>org.netbeans.modules.versioning.masterfs</code-name-base>
155
                        <code-name-base>org.netbeans.modules.versioning.masterfs</code-name-base>
152
                        <recursive/>
156
                        <recursive/>
153
                        <compile-dependency/>
157
                        <compile-dependency/>
154
                    </test-dependency>
158
                    </test-dependency>
155
                    <test-dependency>
159
                    <test-dependency>
156
                        <code-name-base>org.netbeans.modules.nbjunit</code-name-base>
160
                        <code-name-base>org.netbeans.modules.versioning.ui</code-name-base>
157
                        <compile-dependency/>
161
                        <compile-dependency/>
162
                        <test/>
158
                    </test-dependency>
163
                    </test-dependency>
159
                    <test-dependency>
164
                    <test-dependency>
160
                        <code-name-base>org.netbeans.modules.versioning.util</code-name-base>
165
                        <code-name-base>org.netbeans.modules.versioning.util</code-name-base>
(-)versioning/src/org/netbeans/modules/versioning/DelegatingVCS.java (-2 / +3 lines)
Lines 635-641 Link Here
635
                    };
635
                    };
636
                }
636
                }
637
                proxyHistory[i] = 
637
                proxyHistory[i] = 
638
                    new HistoryEntry(
638
                    Utils.createHistoryEntry(
639
                        proxies, 
639
                        proxies, 
640
                        he.getDateTime(), 
640
                        he.getDateTime(), 
641
                        he.getMessage(), 
641
                        he.getMessage(), 
Lines 645-651 Link Here
645
                        he.getRevisionShort(), 
645
                        he.getRevisionShort(), 
646
                        he.getActions(), 
646
                        he.getActions(), 
647
                        rp,
647
                        rp,
648
                        mep);
648
                        mep,
649
                        new Object[] {he});
649
            }
650
            }
650
            return proxyHistory;
651
            return proxyHistory;
651
        }
652
        }
(-)versioning/src/org/netbeans/modules/versioning/spi/VCSHistoryProvider.java (-2 / +8 lines)
Lines 45-50 Link Here
45
import java.io.IOException;
45
import java.io.IOException;
46
import java.util.Date;
46
import java.util.Date;
47
import javax.swing.Action;
47
import javax.swing.Action;
48
import org.openide.util.ContextAwareAction;
48
49
49
50
50
/**
51
/**
Lines 306-316 Link Here
306
        }
307
        }
307
        
308
        
308
        /**
309
        /**
309
         * Returns actions which might be called for this HistoryEntry.
310
         * Returns actions which might be called for this HistoryEntry as it is presented 
311
         * in the history view.<br>
312
         * It is ensured that if the returned actions are a {@link ContextAwareAction}, they 
313
         * will be provided with a context containing the nodes selected in the history view.
314
         * The lookup of those nodes will again contain the relevant {@link HistoryEntry} 
315
         * and {@link java.io.File}-s for which the action should be invoked.
310
         * 
316
         * 
311
         * @return a field of actions
317
         * @return a field of actions
312
         * 
318
         * 
313
         * @since 1.29
319
         * @since 1.31
314
         */
320
         */
315
        public Action[] getActions() {
321
        public Action[] getActions() {
316
            return actions;
322
            return actions;
(-)versioning/test/unit/src/org/netbeans/modules/versioning/spi/VCSHistoryTest.java (-1 / +51 lines)
Lines 44-52 Link Here
44
package org.netbeans.modules.versioning.spi;
44
package org.netbeans.modules.versioning.spi;
45
45
46
46
47
import java.awt.event.ActionEvent;
47
import java.io.File;
48
import java.io.File;
48
import java.io.IOException;
49
import java.io.IOException;
50
import java.util.Collection;
49
import java.util.Date;
51
import java.util.Date;
52
import javax.swing.AbstractAction;
50
import javax.swing.Action;
53
import javax.swing.Action;
51
import org.netbeans.junit.NbTestCase;
54
import org.netbeans.junit.NbTestCase;
52
import org.netbeans.modules.versioning.core.api.VCSFileProxy;
55
import org.netbeans.modules.versioning.core.api.VCSFileProxy;
Lines 54-62 Link Here
54
import org.netbeans.modules.versioning.core.util.VCSSystemProvider;
57
import org.netbeans.modules.versioning.core.util.VCSSystemProvider;
55
import org.netbeans.modules.versioning.spi.VCSHistoryProvider.HistoryEntry;
58
import org.netbeans.modules.versioning.spi.VCSHistoryProvider.HistoryEntry;
56
import org.netbeans.modules.versioning.spi.testvcs.TestVCSHistoryProvider;
59
import org.netbeans.modules.versioning.spi.testvcs.TestVCSHistoryProvider;
60
import org.netbeans.modules.versioning.ui.history.HistoryTestKit;
57
61
58
import org.openide.util.Lookup;
62
import org.openide.util.Lookup;
59
import org.netbeans.modules.versioning.spi.testvcs.TestVCSInterceptor;
63
import org.openide.filesystems.FileObject;
64
import org.openide.filesystems.FileUtil;
65
import org.openide.nodes.Node;
66
import org.openide.util.ContextAwareAction;
60
67
61
/**
68
/**
62
 * Versioning SPI unit tests of VCSInterceptor.
69
 * Versioning SPI unit tests of VCSInterceptor.
Lines 207-212 Link Here
207
        fail("exception should be raised on readonly entry");
214
        fail("exception should be raised on readonly entry");
208
    }
215
    }
209
216
217
    public void testHistoryNodesProperlySetup() throws IOException {
218
        File f1 = new File(dataRootDir, "workdir/root-test-versioned/file1" + TestVCSHistoryProvider.FILE_PROVIDES_REVISIONS_SUFFIX);
219
        f1.createNewFile();
220
        VCSFileProxy proxy1 = VCSFileProxy.createFileProxy(f1);
221
        File f2 = new File(dataRootDir, "workdir/root-test-versioned/file2" + TestVCSHistoryProvider.FILE_PROVIDES_REVISIONS_SUFFIX);
222
        f2.createNewFile();
223
        VCSFileProxy proxy2 = VCSFileProxy.createFileProxy(f2);
224
        VCSSystemProvider.VersioningSystem pvs = Utils.getOwner(proxy1);
225
        assertNotNull(pvs);
226
        org.netbeans.modules.versioning.core.spi.VCSHistoryProvider php = pvs.getVCSHistoryProvider();
227
        assertNotNull(php);
228
229
        org.netbeans.modules.versioning.core.spi.VCSHistoryProvider.HistoryEntry[] phistory = php.getHistory(new VCSFileProxy[] {proxy1, proxy2}, null);
230
        assertNotNull(phistory);
231
        assertTrue(phistory.length > 0);
232
        
233
        Node node = HistoryTestKit.createHistoryNode(phistory[0]);
234
        assertNotNull(node.getLookup().lookup(HistoryEntry.class));
235
        
236
        Collection<? extends File> fos = node.getLookup().lookupAll(File.class);
237
        assertNotNull(fos);
238
        assertTrue(fos.size() >= 2);
239
        assertTrue(fos.contains(f1));
240
        assertTrue(fos.contains(f2));
241
    }
242
    
210
    private void deleteRecursively(File f) {
243
    private void deleteRecursively(File f) {
211
        if(f.isFile()) {
244
        if(f.isFile()) {
212
            f.delete();
245
            f.delete();
Lines 236-239 Link Here
236
            this.message = message;
269
            this.message = message;
237
        }
270
        }
238
    }       
271
    }       
272
    
273
    private class HistoryAwareAction extends AbstractAction implements ContextAwareAction {
274
        private Lookup context;
275
276
        @Override
277
        public void actionPerformed(ActionEvent e) {
278
            
239
}
279
}
280
281
        @Override
282
        public Action createContextAwareInstance(Lookup actionContext) {
283
            this.context = actionContext;
284
            return this;
285
        }
286
        
287
    }
288
    
289
}
(-)versioning/test/unit/src/org/netbeans/modules/versioning/spi/testvcs/TestVCSHistoryProvider.java (-6 / +21 lines)
Lines 47-52 Link Here
47
import javax.swing.AbstractAction;
47
import javax.swing.AbstractAction;
48
import javax.swing.Action;
48
import javax.swing.Action;
49
import org.netbeans.modules.versioning.spi.VCSHistoryProvider;
49
import org.netbeans.modules.versioning.spi.VCSHistoryProvider;
50
import org.openide.util.ContextAwareAction;
51
import org.openide.util.Lookup;
50
52
51
/**
53
/**
52
 *
54
 *
Lines 71-92 Link Here
71
    
73
    
72
    @Override
74
    @Override
73
    public HistoryEntry[] getHistory(File[] files, Date fromDate) {
75
    public HistoryEntry[] getHistory(File[] files, Date fromDate) {
74
        for (File file : files) {
76
        if(files[0].getName().endsWith(FILE_PROVIDES_REVISIONS_SUFFIX)) {
75
            if(file.getName().endsWith(FILE_PROVIDES_REVISIONS_SUFFIX)) {
76
                return new VCSHistoryProvider.HistoryEntry[] {
77
                return new VCSHistoryProvider.HistoryEntry[] {
77
                        new VCSHistoryProvider.HistoryEntry(
78
                        new VCSHistoryProvider.HistoryEntry(
78
                            new File[] {file}, 
79
                        files, 
79
                            new Date(System.currentTimeMillis()), 
80
                            new Date(System.currentTimeMillis()), 
80
                            "msg", 
81
                            "msg", 
81
                            "user", 
82
                            "user", 
82
                            "username", 
83
                            "username", 
83
                            "12345", 
84
                            "12345", 
84
                            "1234567890", 
85
                            "1234567890", 
85
                            new Action[0], 
86
                        new Action[] {new HistoryAwareAction()}, 
86
                            this)};
87
                            this)};
87
                
88
            }
88
            }
89
        }
90
        return history;
89
        return history;
91
    }
90
    }
92
91
Lines 114-117 Link Here
114
    public void getRevisionFile(File originalFile, File revisionFile) {
113
    public void getRevisionFile(File originalFile, File revisionFile) {
115
        revisionProvided = true;
114
        revisionProvided = true;
116
    }
115
    }
116
    
117
    public class HistoryAwareAction extends AbstractAction implements ContextAwareAction {
118
        public Lookup context;
119
120
        @Override
121
        public void actionPerformed(ActionEvent e) {
122
            
117
}
123
}
124
125
        @Override
126
        public Action createContextAwareInstance(Lookup actionContext) {
127
            this.context = actionContext;
128
            return this;
129
        }
130
        
131
    }
132
}

Return to bug 210691