org.eclipse.mylar.internal.tasks.ui.editors
Class TaskEditorInput
java.lang.Object
org.eclipse.mylar.internal.tasks.ui.editors.TaskEditorInput
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPersistable, org.eclipse.ui.IPersistableElement
public class TaskEditorInput
- extends java.lang.Object
- implements org.eclipse.ui.IEditorInput, org.eclipse.ui.IPersistableElement
- Author:
- Eric Booth, Rob Elves, Mik Kersten
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MAX_LABEL_LENGTH
private static final int MAX_LABEL_LENGTH
- See Also:
- Constant Field Values
task
private ITask task
id
private java.lang.String id
label
private java.lang.String label
newTask
private boolean newTask
TaskEditorInput
public TaskEditorInput(ITask task,
boolean newTask)
init
private void init(ITask task)
truncateDescription
private java.lang.String truncateDescription(java.lang.String description)
exists
public boolean exists()
- Specified by:
exists
in interface org.eclipse.ui.IEditorInput
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor
in interface org.eclipse.ui.IEditorInput
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.eclipse.ui.IEditorInput
getPersistable
public org.eclipse.ui.IPersistableElement getPersistable()
- Specified by:
getPersistable
in interface org.eclipse.ui.IEditorInput
getToolTipText
public java.lang.String getToolTipText()
- Specified by:
getToolTipText
in interface org.eclipse.ui.IEditorInput
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getTask
public ITask getTask()
- Returns:
- Returns the task.
getId
public java.lang.String getId()
- Returns:
- Returns the id.
getLabel
public java.lang.String getLabel()
- Returns:
- Returns the label.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
isNewTask
public boolean isNewTask()
getFactoryId
public java.lang.String getFactoryId()
- Specified by:
getFactoryId
in interface org.eclipse.ui.IPersistableElement
saveState
public void saveState(org.eclipse.ui.IMemento memento)
- Specified by:
saveState
in interface org.eclipse.ui.IPersistable