1 11 package org.eclipse.ui.part; 12 13 import org.eclipse.ui.IEditorPart; 14 15 30 public abstract class MultiPageEditorActionBarContributor extends 31 EditorActionBarContributor { 32 35 protected MultiPageEditorActionBarContributor() { 36 super(); 37 } 38 39 45 public void setActiveEditor(IEditorPart part) { 46 IEditorPart activeNestedEditor = null; 47 if (part instanceof MultiPageEditorPart) { 48 activeNestedEditor = ((MultiPageEditorPart) part).getActiveEditor(); 49 } 50 setActivePage(activeNestedEditor); 51 } 52 53 65 public abstract void setActivePage(IEditorPart activeEditor); 66 } 67 | Popular Tags |