Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 232264583459e163e2e988d9631bf821a6d15360 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.eclipse.wst.xml.vex.ui.internal.editor;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.wst.xml.ui.internal.Logger;

public class PageInitializationData {
	IConfigurationElement fElement;
	String fPropertyName;
	Object fData;

	PageInitializationData(IConfigurationElement cfig, String propertyName, Object data) {
		super();
		fElement = cfig;
		fPropertyName = propertyName;
		fData = data;
	}
	void sendInitializationData(IExecutableExtension executableExtension) {
		try {
			executableExtension.setInitializationData(fElement, fPropertyName, fData);
		} catch (CoreException e) {
			Logger.logException(e);
		}
	}
}

Back to the top