1 11 package org.eclipse.team.internal.ccvs.ui; 12 13 import java.io.InputStream ; 14 15 import org.eclipse.core.runtime.IProgressMonitor; 16 import org.eclipse.core.runtime.NullProgressMonitor; 17 import org.eclipse.team.core.TeamException; 18 import org.eclipse.team.internal.ccvs.core.ICVSRemoteFile; 19 import org.eclipse.ui.IStorageEditorInput; 20 import org.eclipse.ui.model.IWorkbenchAdapter; 21 22 25 public class RemoteAnnotationEditorInput extends RemoteFileEditorInput implements IWorkbenchAdapter, IStorageEditorInput { 26 27 InputStream contents; 28 29 public RemoteAnnotationEditorInput(ICVSRemoteFile file, InputStream contents) { 30 super(file, new NullProgressMonitor()); 31 this.contents = contents; 32 } 33 34 37 protected void initializeStorage(ICVSRemoteFile file, IProgressMonitor monitor) throws TeamException { 38 if (contents != null) { 39 storage = new RemoteAnnotationStorage(file, contents); 40 } 41 } 42 } 43 | Popular Tags |