setPageText(0, ClickPlugin.getString("editor.clickXML.source"));
} catch(Exception ex){
ClickPlugin.log(ex);
}
IStructuredModel model = (IStructuredModel)sourceEditor.getAdapter(IStructuredModel.class);
try {
interceptorEditor = new ClickInterceptorEditor();
addPage(0, interceptorEditor, getEditorInput());
interceptorEditor.initModel(model);
setPageText(0, ClickPlugin.getString("editor.clickXML.pageInterceptor"));
sourceEditorIndex++;
} catch(Exception ex){
removePage(0);
}
try {
serviceEditor = new ClickServiceEditor();
addPage(0, serviceEditor, getEditorInput());
serviceEditor.initModel(model);
setPageText(0, ClickPlugin.getString("editor.clickXML.service"));
sourceEditorIndex++;
} catch(Exception ex){
removePage(0);
}
try {
controlEditor = new ClickControlsEditor();
addPage(0, controlEditor, getEditorInput());
controlEditor.initModel(model);
setPageText(0, ClickPlugin.getString("editor.clickXML.controls"));
sourceEditorIndex++;
} catch(Exception ex){
removePage(0);
}
try {
pageEditor = new ClickPagesEditor();
addPage(0, pageEditor, getEditorInput());
pageEditor.initModel(model);
setPageText(0, ClickPlugin.getString("editor.clickXML.pages"));
sourceEditorIndex++;
} catch(Exception ex){
removePage(0);
}
try {
headerEditor = new ClickHeadersEditor();
addPage(0, headerEditor, getEditorInput());
headerEditor.initModel(model);
setPageText(0, ClickPlugin.getString("editor.clickXML.headers"));
sourceEditorIndex++;
} catch(Exception ex){
removePage(0);
}
try {
generalEditor = new ClickGeneralEditor();
addPage(0, generalEditor, getEditorInput());
generalEditor.initModel(model);
setPageText(0, ClickPlugin.getString("editor.clickXML.general"));
sourceEditorIndex++;
} catch(Exception ex){
removePage(0);
}
model.addModelStateListener(listener);
// IContentOutlinePage outline
// = (IContentOutlinePage)sourceEditor.getAdapter(IContentOutlinePage.class);
// outline.addSelectionChangedListener(new ISelectionChangedListener(){
// public void selectionChanged(SelectionChangedEvent event){