1 11 12 package org.eclipse.ui.internal; 13 14 import org.eclipse.swt.widgets.Composite; 15 import org.eclipse.ui.*; 16 import org.eclipse.ui.part.ViewPart; 17 18 public class EditorView extends ViewPart { 19 private EditorList editorList; 20 21 24 public EditorView() { 25 } 26 27 30 public void createPartControl(Composite parent) { 31 IWorkbenchWindow window = getSite().getPage().getWorkbenchWindow(); 32 editorList = new EditorList(window, null); 33 editorList.createControl(parent); 34 } 35 36 39 public void dispose() { 40 editorList.dispose(); 41 editorList = null; 42 super.dispose(); 43 } 44 45 48 public void setFocus() { 49 editorList.getControl().setFocus(); 50 } 51 } 52 | Popular Tags |