templateEditor.init(htmlSite, htmlInput);
} catch (PartInitException e) {
ComponenteditorPlugin.getDefault().log(e);
}
_templateContainer = createInnerPartControl(getParentSashForm(), templateEditor);
templateEditor.addPropertyListener(new IPropertyListener() {
public void propertyChanged(Object source, int propertyId) {
HtmlWodTab.this.getComponentEditorPart().publicHandlePropertyChange(propertyId);
}
});
if (wodInput != null && ((ComponentEditorFileEditorInput)wodInput).getFile().exists()) {
wodEditor = new WodEditor();
IEditorSite wodSite = this.getComponentEditorPart().publicCreateSite(wodEditor);
try {
wodEditor.init(wodSite, wodInput);
} catch (PartInitException e) {
ComponenteditorPlugin.getDefault().log(e);
}
_wodContainer = createInnerPartControl(getParentSashForm(), wodEditor);
_wodContainer.setBackground(_wodContainer.getDisplay().getSystemColor(SWT.COLOR_WHITE));
wodEditor.addPropertyListener(new IPropertyListener() {
public void propertyChanged(Object source, int propertyId) {
HtmlWodTab.this.getComponentEditorPart().publicHandlePropertyChange(propertyId);
}
});
wodEditor.getSelectionProvider().addSelectionChangedListener(new ISelectionChangedListener() {