pl.edu.agh.cast.ui.dialogs
Class CreateProjectDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by pl.edu.agh.cast.ui.dialogs.CreateProjectDialog

public class CreateProjectDialog
extends org.eclipse.swt.widgets.Dialog

Dialog used for creating a new project.

Author:
AGH CAST Team

Constructor Summary
CreateProjectDialog(org.eclipse.swt.widgets.Shell parent, int style, String title, String dialogPrompt, String locationPrompt)
          Creates new dialog for defining new projects.
 
Method Summary
 String getLocation()
           
 String getName()
           
 void open(String name)
          Opens dialog with current name specified for changes.
 void setLocation(String location)
           
 boolean wasCancelled()
          Checks whether the dialog was canceled.
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateProjectDialog

public CreateProjectDialog(org.eclipse.swt.widgets.Shell parent,
                           int style,
                           String title,
                           String dialogPrompt,
                           String locationPrompt)
Creates new dialog for defining new projects.

Parameters:
parent - parent shell
style - SWT window style
title - title of dialog window
dialogPrompt - dialog prompt message
locationPrompt - project location selection prompt message
Method Detail

getName

public String getName()

wasCancelled

public boolean wasCancelled()
Checks whether the dialog was canceled.

Returns:
true if the dialog was canceled

open

public void open(String name)
Opens dialog with current name specified for changes.

Parameters:
name - current project name

getLocation

public String getLocation()

setLocation

public void setLocation(String location)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.