de.cau.cs.kieler.klots.util
Class NXTFirmwareFlasher

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.window.ApplicationWindow
          extended by de.cau.cs.kieler.klots.util.NXTFirmwareFlasher
All Implemented Interfaces:
IRunnableContext, IShellProvider

public class NXTFirmwareFlasher
extends ApplicationWindow

GUI application to write the leJOS Virtual Machine and Menu system to the NXT Flash. This Eclipse SWT adapted implementation is based on Roger Glassey original Swing code and on Andy Shaw original command line code.

Rating red

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Field Summary
static int DEFAULT_HEIGHT
           
static int DEFAULT_WIDTH
           
 
Fields inherited from class org.eclipse.jface.window.ApplicationWindow
seperator1
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
NXTFirmwareFlasher(Composite parent)
          Constructor.
 
Method Summary
protected  void configureShell(Shell shell)
          Configures the shell.
protected  Control createContents(Composite parent)
          Creates the main window's contents.
 void run(Button button)
          Runs the application.
 
Methods inherited from class org.eclipse.jface.window.ApplicationWindow
addCoolBar, addMenuBar, addStatusLine, addToolBar, canHandleShellCloseEvent, close, coolBarChildrenExist, createCoolBarControl, createCoolBarManager, createCoolBarManager2, createMenuManager, createStatusLine, createStatusLineManager, createToolBarControl, createToolBarManager, createToolBarManager2, createTrimWidgets, getCoolBarControl, getCoolBarManager, getCoolBarManager2, getFont, getLayout, getMenuBarManager, getSeperator1, getStatusLineManager, getSymbolicFontName, getToolBarControl, getToolBarManager, getToolBarManager2, run, setStatus, showTopSeperator, toolBarChildrenExist
 
Methods inherited from class org.eclipse.jface.window.Window
constrainShellSize, create, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getInitialSize, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
See Also:
Constant Field Values

DEFAULT_HEIGHT

public static final int DEFAULT_HEIGHT
See Also:
Constant Field Values
Constructor Detail

NXTFirmwareFlasher

public NXTFirmwareFlasher(Composite parent)
Constructor.

Parameters:
parent -
Method Detail

run

public void run(Button button)
Runs the application.

Parameters:
button -

configureShell

protected void configureShell(Shell shell)
Configures the shell.

Overrides:
configureShell in class ApplicationWindow
Parameters:
shell - the shell

createContents

protected Control createContents(Composite parent)
Creates the main window's contents.

Overrides:
createContents in class Window
Parameters:
parent - the main window
Returns:
Control