Mercurial > hg > Database > Christie
annotate src/main/java/christie/remotingTextEditor/StartTwoEditor.java @ 223:1c37472fc00d
add catch command from editors
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Nov 2019 15:12:37 +0900 |
parents | 7e5f18a5e612 |
children | 0c74d9168aff |
rev | line source |
---|---|
221
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 package christie.remotingTextEditor; |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 import christie.codegear.CodeGear; |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 import christie.codegear.CodeGearManager; |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 import christie.codegear.StartCodeGear; |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 public class StartTwoEditor extends StartCodeGear{ |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 public StartTwoEditor(CodeGearManager cgm) { |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 super(cgm); |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 } |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 public static void main(String[] args){ |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 CodeGearManager editor1 = createCGM(10001); |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 CodeGearManager editor2 = createCGM(10002); |
223
1c37472fc00d
add catch command from editors
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
221
diff
changeset
|
15 editor1.createRemoteDGM("editor2","localhost",10002); |
221
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 editor1.setup(new SetInstance()); |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 editor2.setup(new SetInstance()); |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 } |
7e5f18a5e612
add RemoteEditor & TextEditor
ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 } |