public abstract class BaseStep extends AbstractLaunchStep
AbstractLaunchStep.LockedAction<T>
LaunchStep.StepState
Modifier and Type | Field and Description |
---|---|
protected LaunchContextImpl |
context |
protected java.awt.image.BufferedImage |
icon |
changeSupport
Modifier | Constructor and Description |
---|---|
protected |
BaseStep(LaunchContextImpl context,
java.lang.String iconName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Describe this step's purpose
|
abstract java.lang.String |
getDescriptionKey() |
java.awt.Image |
getIcon()
A 24x24 icon that represents this step
|
protected java.lang.String |
getString(java.lang.String key)
Abstraction to accommodate different methods of looking up bundle strings
|
protected void |
log(java.lang.String message,
java.lang.Object... args)
Abstraction to accommodate different logging methods
|
protected void |
maybeWaitFor503(java.lang.Exception ex)
Checks to see if the exception happens to be an HttpResponseException with responseCode==503.
|
protected <T> T |
runLockedAction(AbstractLaunchStep.LockedAction<T> action) |
protected void |
waitFor(int secs)
Waits for a number of seconds, updating the progress bar appropriately
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getMessage, getProgress, getState, isIndeterminate, newConnection, newConnection, removePropertyChangeListener, removePropertyChangeListener, runLockedAction, setIndeterminate, setMessage, setMessagef, setProgress, setState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
protected java.awt.image.BufferedImage icon
protected LaunchContextImpl context
protected BaseStep(LaunchContextImpl context, java.lang.String iconName)
protected <T> T runLockedAction(AbstractLaunchStep.LockedAction<T> action) throws java.lang.Exception
java.lang.Exception
public java.awt.Image getIcon()
LaunchStep
public java.lang.String getDescription()
LaunchStep
protected java.lang.String getString(java.lang.String key)
AbstractLaunchStep
getString
in class AbstractLaunchStep
protected void log(java.lang.String message, java.lang.Object... args)
AbstractLaunchStep
log
in class AbstractLaunchStep
public abstract java.lang.String getDescriptionKey()
protected void waitFor(int secs) throws java.lang.Exception
java.lang.Exception
protected void maybeWaitFor503(java.lang.Exception ex) throws java.lang.Exception
java.lang.Exception