|
Lines 89-95
Link Here
|
| 89 |
+ "\npublic class UIEvents {" //$NON-NLS-1$ |
89 |
+ "\npublic class UIEvents {" //$NON-NLS-1$ |
| 90 |
+ "\n\tpublic static final String TOPIC_SEP = \"/\"; //$NON-NLS-1$" //$NON-NLS-1$ |
90 |
+ "\n\tpublic static final String TOPIC_SEP = \"/\"; //$NON-NLS-1$" //$NON-NLS-1$ |
| 91 |
+ "\n\tpublic static final String ALL_SUB_TOPICS = \"*\"; //$NON-NLS-1$" //$NON-NLS-1$ |
91 |
+ "\n\tpublic static final String ALL_SUB_TOPICS = \"*\"; //$NON-NLS-1$" //$NON-NLS-1$ |
| 92 |
+ "\n\tpublic static final String UITopicBase = \"org/eclipse/e4/ui/model\"; //$NON-NLS-1$" //$NON-NLS-1$ |
92 |
+ "\n\tpublic static final String UITopicBase = \"org/eclipse/e4/ui\"; //$NON-NLS-1$" //$NON-NLS-1$ |
|
|
93 |
+ "\n\tpublic static final String UIModelTopicBase = UITopicBase + \"/model\"; //$NON-NLS-1$" //$NON-NLS-1$ |
| 93 |
+ "\n\tpublic static interface EventTypes {" //$NON-NLS-1$ |
94 |
+ "\n\tpublic static interface EventTypes {" //$NON-NLS-1$ |
| 94 |
+ "\n\t\tpublic static final String CREATE = \"CREATE\"; //$NON-NLS-1$" //$NON-NLS-1$ |
95 |
+ "\n\t\tpublic static final String CREATE = \"CREATE\"; //$NON-NLS-1$" //$NON-NLS-1$ |
| 95 |
+ "\n\t\tpublic static final String SET = \"SET\"; //$NON-NLS-1$" //$NON-NLS-1$ |
96 |
+ "\n\t\tpublic static final String SET = \"SET\"; //$NON-NLS-1$" //$NON-NLS-1$ |
|
Lines 113-121
Link Here
|
| 113 |
} |
114 |
} |
| 114 |
String pkgName = eClass.getEPackage().getName(); |
115 |
String pkgName = eClass.getEPackage().getName(); |
| 115 |
String className = eClass.getName(); |
116 |
String className = eClass.getName(); |
| 116 |
System.out.print("\n\tpublic static interface " + className + " {" //$NON-NLS-1$ //$NON-NLS-2$ |
117 |
System.out |
| 117 |
+ "\n\t\tpublic static final String TOPIC = UITopicBase + \"/" //$NON-NLS-1$ |
118 |
.print("\n\tpublic static interface " + className + " {" //$NON-NLS-1$ //$NON-NLS-2$ |
| 118 |
+ pkgName + '/' + className + "\"; //$NON-NLS-1$"); //$NON-NLS-1$ |
119 |
+ "\n\t\tpublic static final String TOPIC = UIModelTopicBase + \"/" //$NON-NLS-1$ |
|
|
120 |
+ pkgName + '/' + className + "\"; //$NON-NLS-1$"); //$NON-NLS-1$ |
| 119 |
Set<String> names = new TreeSet<String>(); |
121 |
Set<String> names = new TreeSet<String>(); |
| 120 |
for (EStructuralFeature feature : features) { |
122 |
for (EStructuralFeature feature : features) { |
| 121 |
names.add(feature.getName()); |
123 |
names.add(feature.getName()); |