org.radrails.rails.internal.ui.terminal
Class TerminalSessionInput

java.lang.Object
  extended byorg.radrails.rails.internal.ui.terminal.TerminalSessionInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput

public class TerminalSessionInput
extends java.lang.Object
implements org.eclipse.ui.IEditorInput

Editor input for the Terminal window. Contains the root of the currently selected project and an optional command to run.

Author:
mkent

Constructor Summary
TerminalSessionInput(java.io.File projectRoot, java.lang.String command)
           
 
Method Summary
 boolean exists()
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getCommand()
           
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
           
 java.lang.String getName()
           
 org.eclipse.ui.IPersistableElement getPersistable()
           
 java.io.File getProjectRoot()
           
 java.lang.String getToolTipText()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerminalSessionInput

public TerminalSessionInput(java.io.File projectRoot,
                            java.lang.String command)
Method Detail

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

getProjectRoot

public java.io.File getProjectRoot()

getCommand

public java.lang.String getCommand()