Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 357136
Collapse All | Expand All

(-)src/org/eclipse/e4/ui/internal/workbench/swt/GenTopic.java (-4 / +6 lines)
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());
(-)src/org/eclipse/e4/ui/internal/workbench/UIEventPublisher.java (-11 / +4 lines)
Lines 32-41 Link Here
32
	private IEclipseContext context;
32
	private IEclipseContext context;
33
33
34
	/**
34
	/**
35
	 * Constructor.
36
	 * 
37
	 * @param e4Context
35
	 * @param e4Context
38
	 * @param partList
39
	 */
36
	 */
40
	public UIEventPublisher(IEclipseContext e4Context) {
37
	public UIEventPublisher(IEclipseContext e4Context) {
41
		this.context = e4Context;
38
		this.context = e4Context;
Lines 61-71 Link Here
61
		}
58
		}
62
	}
59
	}
63
60
64
	/**
65
	 * @param notification
66
	 * @param argMap
67
	 * @return
68
	 */
69
	private String formatData(Notification notification, Map<String, Object> argMap) {
61
	private String formatData(Notification notification, Map<String, Object> argMap) {
70
		// The unchecked casts below represent 'asserts'
62
		// The unchecked casts below represent 'asserts'
71
		MApplicationElement appElement = (MApplicationElement) notification.getNotifier();
63
		MApplicationElement appElement = (MApplicationElement) notification.getNotifier();
Lines 109-116 Link Here
109
	 */
101
	 */
110
	private String getTopic(EStructuralFeature eFeature, String type) {
102
	private String getTopic(EStructuralFeature eFeature, String type) {
111
		EClass eContainingClass = eFeature.getEContainingClass();
103
		EClass eContainingClass = eFeature.getEContainingClass();
112
		return UIEvents.UITopicBase + UIEvents.TOPIC_SEP + eContainingClass.getEPackage().getName()
104
		return UIEvents.UIModelTopicBase + UIEvents.TOPIC_SEP
113
				+ UIEvents.TOPIC_SEP + eContainingClass.getName() + UIEvents.TOPIC_SEP
105
				+ eContainingClass.getEPackage().getName() + UIEvents.TOPIC_SEP
114
				+ eFeature.getName() + UIEvents.TOPIC_SEP + type;
106
				+ eContainingClass.getName() + UIEvents.TOPIC_SEP + eFeature.getName()
107
				+ UIEvents.TOPIC_SEP + type;
115
	}
108
	}
116
}
109
}

Return to bug 357136