View Javadoc

1   package com.atlassian.theplugin.eclipse.editors.bamboo;
2   
3   import org.eclipse.jface.resource.ImageDescriptor;
4   import org.eclipse.ui.IEditorInput;
5   import org.eclipse.ui.IPersistableElement;
6   
7   public class BuildLogEditorInput implements IEditorInput {
8   
9   	private String log;
10  	private String title;
11  
12  	public BuildLogEditorInput(String log, String title) {
13  		this.log = log;
14  		this.title = title;
15  	}
16  	
17  	public String getLog() {
18  		return log;
19  	}
20  
21  	public boolean exists() {
22  		return false;
23  	}
24  
25  	public ImageDescriptor getImageDescriptor() {
26  		return null;
27  	}
28  
29  	public String getName() {
30  		return title;
31  	}
32  
33  	public IPersistableElement getPersistable() {
34  		return null;
35  	}
36  
37  	public String getToolTipText() {
38  		return "Log for build " + getName();
39  	}
40  
41  	@SuppressWarnings("unchecked")
42  	public Object getAdapter(Class adapter) {
43  		return null;
44  	}
45  
46  }