/** * Create the control of the inner editor. * * Must be called by subclass. */ public Composite createInnerPartControl(Composite parent, final IEditorPart e) { Composite content = new Composite(parent, SWT.NONE); content.setLayout(new FillLayout()); e.createPartControl(content); parent.addListener(SWT.Activate, event -> { if (event.type == SWT.Activate) { activateEditor(e); } }); return content; }
editor.createPartControl(parent1); editor.addPropertyListener(new IPropertyListener() { public void propertyChanged(Object source, int propertyId) {
getOrientation(editor)); parent2.setLayout(new FillLayout()); editor.createPartControl(parent2); editor.addPropertyListener((source, propertyId) -> MultiPageEditorPart.this.handlePropertyChange(propertyId));