public Object getAdapter(Object adaptableObject,
@SuppressWarnings("rawtypes") Class adapterType) {
if (GFPreferences.getInstance().isGenericOutlineActive()) {
if (IContentOutlinePage.class.equals(adapterType)) {
if (adaptableObject instanceof RiderDesignEditor) {
RiderDesignEditor diagramEditor = (RiderDesignEditor) adaptableObject;
if (diagramEditor.getConfigurationProvider() != null) { // diagram
// editor
// initialized?
CamelContextOutlinePage outlinePage = new CamelContextOutlinePage(
new TreeViewer(),
diagramEditor.getGraphicalViewer(),
diagramEditor.getActionRegistry(),
diagramEditor.getEditDomain(),
diagramEditor.getKeyHandler(),
diagramEditor.getAdapter(ZoomManager.class),
diagramEditor.getSelectionSyncer(),
diagramEditor);
return outlinePage;
}
}
}