1 11 package org.eclipse.debug.internal.ui.sourcelookup; 12 13 import org.eclipse.debug.ui.sourcelookup.ISourceLookupResult; 14 import org.eclipse.ui.IEditorInput; 15 16 22 public class SourceLookupResult implements ISourceLookupResult { 23 24 27 private Object fArtifact; 28 32 private Object fSourceElement; 33 37 private String fEditorId; 38 42 private IEditorInput fEditorInput; 43 44 48 public SourceLookupResult(Object artifact, Object sourceElement, String editorId, IEditorInput editorInput) { 49 fArtifact = artifact; 50 setSourceElement(sourceElement); 51 setEditorId(editorId); 52 setEditorInput(editorInput); 53 } 54 55 58 public Object getArtifact() { 59 return fArtifact; 60 } 61 62 65 public Object getSourceElement() { 66 return fSourceElement; 67 } 68 69 76 protected void setSourceElement(Object element) { 77 fSourceElement = element; 78 } 79 80 83 public String getEditorId() { 84 return fEditorId; 85 } 86 87 94 protected void setEditorId(String id) { 95 fEditorId = id; 96 } 97 98 101 public IEditorInput getEditorInput() { 102 return fEditorInput; 103 } 104 105 112 protected void setEditorInput(IEditorInput input) { 113 fEditorInput = input; 114 } 115 116 124 public void updateArtifact(Object artifact) { 125 if (fArtifact.equals(artifact)) { 126 fArtifact = artifact; 127 } 128 } 129 } 130 | Popular Tags |