Last modified by Kieran Kelleher on 2007/07/03 11:53

From version 2.1
edited by Kieran Kelleher
on 2007/07/03 11:52
Change comment: There is no comment for this version
To version 3.1
edited by Kieran Kelleher
on 2007/07/03 11:53
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,22 +2,20 @@
2 2  
3 3  {{code}}
4 4  
5 -
6 6  public class MyEditingContext extends ERXEC {
7 -
6 +
8 8   public MyEditingContext(EOObjectStore anObjectStore) {
9 9   super(anObjectStore);
10 10   }
11 -
10 +
12 12   public MyEditingContext() {
13 13   super();
14 14   }
15 -
14 +
16 16   // Your custom logic here...
17 -
16 +
18 18  }
19 19  
20 -
21 21  {{/code}}
22 22  
23 23  ==== Create the ERXEC.DefaultFactory Subclass ====
... ... @@ -24,16 +24,15 @@
24 24  
25 25  {{code}}
26 26  
27 -
28 28  public class MyEditingContextFactory extends ERXEC.DefaultFactory {
29 -
26 +
30 30   public MyEditingContextFactory() {
31 31   super();
32 32   }
33 -
30 +
34 34   protected EOEditingContext _createEditingContext(EOObjectStore parent) {
35 35   return new MyEditingContext(parent == null ? EOEditingContext.defaultParentObjectStore() : parent);;
36 - }
33 + }
37 37  }
38 38  
39 39  {{/code}}
... ... @@ -44,7 +44,7 @@
44 44  
45 45  {{code}}
46 46  
47 - public Application() {
44 +public Application() {
48 48   super();
49 49  
50 50   // Configure the Editing Context factory for my subclass of ERXEC
... ... @@ -56,10 +56,10 @@
56 56  
57 57  {{/code}}
58 58  
59 -==== Creating an EditingContext ====
56 +==== Creating an Instance of Your Custom Editing Context Subclass ====
60 60  
61 61  {{code}}
62 62  
63 - EOEditingContext ec = ERXEC.newEditingContext();
60 +EOEditingContext ec = ERXEC.newEditingContext();
64 64  
65 65  {{/code}}