1 11 package org.eclipse.ui.internal.texteditor; 12 13 import org.eclipse.core.runtime.Assert; 14 15 import org.eclipse.jface.text.Position; 16 17 import org.eclipse.ui.IEditorInput; 18 19 24 public final class EditPosition { 25 26 27 private final IEditorInput fEditorInput; 28 29 private final String fEditorId; 30 31 private final Position fPosition; 32 33 39 public EditPosition(IEditorInput editorInput, String editorId, Position pos) { 40 Assert.isNotNull(editorInput); 41 Assert.isNotNull(editorId); 42 fEditorId= editorId; 43 fEditorInput= editorInput; 44 fPosition= pos; 45 } 46 47 52 IEditorInput getEditorInput() { 53 return fEditorInput; 54 } 55 56 61 String getEditorId() { 62 return fEditorId; 63 } 64 65 70 Position getPosition() { 71 return fPosition; 72 } 73 } 74 | Popular Tags |