org.eclipse.wst.server.core.model
Class RuntimeTargetHandlerDelegate

java.lang.Object
  extended byorg.eclipse.wst.server.core.model.RuntimeTargetHandlerDelegate

public abstract class RuntimeTargetHandlerDelegate
extends java.lang.Object

Since:
1.0

Constructor Summary
RuntimeTargetHandlerDelegate()
           
 
Method Summary
 IRuntimeTargetHandler getRuntimeTargetHandler()
          Returns the runtime target handler that this delegate is associated with.
 void initialize(IRuntimeTargetHandler newHandler)
          Initializes the runtime target handler.
abstract  void removeRuntimeTarget(IProject project, IRuntime runtime, IProgressMonitor monitor)
          Remove the runtime target from the given project.
abstract  void setRuntimeTarget(IProject project, IRuntime runtime, IProgressMonitor monitor)
          Set the runtime target on the given project.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeTargetHandlerDelegate

public RuntimeTargetHandlerDelegate()
Method Detail

initialize

public final void initialize(IRuntimeTargetHandler newHandler)
Initializes the runtime target handler.

Parameters:
newHandler - the new handler

getRuntimeTargetHandler

public IRuntimeTargetHandler getRuntimeTargetHandler()
Returns the runtime target handler that this delegate is associated with.

Returns:
the runtime target handler

setRuntimeTarget

public abstract void setRuntimeTarget(IProject project,
                                      IRuntime runtime,
                                      IProgressMonitor monitor)
                               throws CoreException
Set the runtime target on the given project.

Parameters:
project - the project to set the runtime on
runtime - the target runtime
monitor - a progress monitor, or null if progress reporting and cancellation are not desired
Throws:
CoreException - thrown if there is a problem setting the runtime

removeRuntimeTarget

public abstract void removeRuntimeTarget(IProject project,
                                         IRuntime runtime,
                                         IProgressMonitor monitor)
                                  throws CoreException
Remove the runtime target from the given project.

Parameters:
project - the project to remove the runtime from
runtime - the target runtime
monitor - a progress monitor, or null if progress reporting and cancellation are not desired
Throws:
CoreException - thrown if there is a problem removing the runtime