use of org.eclipse.wst.sse.ui.internal.IExtendedEditorAction in project webtools.sourceediting by eclipse.
the class ExtendedEditorActionProxyForDelayLoading method realize.
/**
* Instantiate a real class here
*/
public void realize() {
if ((proxy == null) && (element != null) && (classAttribute != null)) {
proxy = newInstance(element, classAttribute);
if (proxy != null) {
// propagate proxy'ed properties
if (set_p_listeners == true) {
if (p_listeners.size() > 0) {
Object[] l = p_listeners.getListeners();
int ls = l.length;
for (int i = 0; i < ls; i++) {
IPropertyChangeListener pl = (IPropertyChangeListener) l[i];
proxy.addPropertyChangeListener(pl);
// remove listener from dymmy so that we don't send notifications twice anymore
dummy.removePropertyChangeListener(pl);
}
}
}
if (set_p_accelerator == true) {
proxy.setAccelerator(p_accelerator);
}
if (set_p_actionDefinitionId == true) {
if (p_actionDefinitionId != null) {
proxy.setActionDefinitionId(p_actionDefinitionId);
}
}
if (set_p_checked == true) {
proxy.setChecked(p_checked);
}
if (set_p_disabledImage == true) {
if (p_disabledImage != null) {
proxy.setDisabledImageDescriptor(p_disabledImage);
}
}
if (set_p_enabled == true) {
proxy.setEnabled(p_enabled);
}
if (set_p_helpListener == true) {
if (p_helpListener != null) {
proxy.setHelpListener(p_helpListener);
}
}
if (set_p_hoverImage == true) {
if (p_hoverImage != null) {
proxy.setHoverImageDescriptor(p_hoverImage);
}
}
if (set_p_id == true) {
if (p_id != null) {
proxy.setId(p_id);
}
}
if (set_p_image == true) {
if (p_image != null) {
proxy.setImageDescriptor(p_image);
}
}
if (set_p_text == true) {
if (p_text != null) {
proxy.setText(p_text);
}
}
if (set_p_description == true) {
if (p_description != null) {
proxy.setDescription(p_description);
}
}
if (set_p_toolTipText == true) {
if (p_toolTipText != null) {
proxy.setToolTipText(p_toolTipText);
}
}
if (set_p_targetEditor == true) {
if (p_targetEditor != null) {
if (proxy instanceof IExtendedEditorAction) {
((IExtendedEditorAction) proxy).setActiveExtendedEditor(p_targetEditor);
}
}
}
}
}
}
Aggregations