blob: 2c971f5df464893d29abf7cdef6b1204805c12c7 [file] [log] [blame]
package org.eclipse.ui.forms.examples.wizards;
import org.eclipse.ui.internal.forms.WizardFormEditor;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
public class WizardFormEditorWithOutline extends WizardFormEditor {
private WizardFormEditorOutline outline;
public Object getAdapter(Class key) {
if (key.equals(IContentOutlinePage.class)) {
return getContentOutline();
}
return super.getAdapter(key);
}
private IContentOutlinePage getContentOutline() {
if (outline==null) {
outline = new WizardFormEditorOutline(this);
}
return outline;
}
protected void update() {
super.update();
if (outline!=null)
outline.update();
}
}