org.radrails.server.internal.ui.dialogs
Class EditServerDialog

java.lang.Object
  extended byorg.eclipse.jface.window.Window
      extended byorg.eclipse.jface.dialogs.Dialog
          extended byorg.radrails.server.internal.ui.dialogs.EditServerDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class EditServerDialog
extends org.eclipse.jface.dialogs.Dialog

Dialog to display server properties for editing.

Author:
mkent

Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DLG_IMG_ERROR, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
EditServerDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String currName, java.lang.String currPort, java.lang.String currEnvironment)
          Constructor.
 
Method Summary
 void buttonPressed(int buttonId)
           
 java.lang.String getEnvironment()
          Return server environment
 java.lang.String getName()
          Return server name
 java.lang.String getPort()
          Return server port
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditServerDialog

public EditServerDialog(org.eclipse.swt.widgets.Shell parentShell,
                        java.lang.String currName,
                        java.lang.String currPort,
                        java.lang.String currEnvironment)
Constructor.

Parameters:
parentShell - parent shell of the dialog
currName - current name of the server
currPort - current port of the server
currEnvironment - current runtime environment of the server
Method Detail

buttonPressed

public void buttonPressed(int buttonId)
See Also:
org.eclipse.jface.dialogs.Dialog#buttonPressed(int)

getName

public java.lang.String getName()
Return server name

Returns:
name the name of the server

getPort

public java.lang.String getPort()
Return server port

Returns:
port the port the server runs on

getEnvironment

public java.lang.String getEnvironment()
Return server environment

Returns:
environment the runtime environment of the server