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

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

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

Dialog used for renaming project name.

Author:
AGH CAST Team

Constructor Summary
GetNewNameDialog(org.eclipse.swt.widgets.Shell parent, int style, String title, String dialogPrompt, String errorMsg)
          Creates new dialog.
 
Method Summary
 String getResult()
           
 void open(String name)
          Opens dialog with current name specified for changes.
protected  boolean projectExists(String projectName)
           
 void setExistLabelList(List<String> existLabelList)
           
 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

GetNewNameDialog

public GetNewNameDialog(org.eclipse.swt.widgets.Shell parent,
                        int style,
                        String title,
                        String dialogPrompt,
                        String errorMsg)
Creates new dialog.

Parameters:
parent - parent Shell
style - SWT window style
title - title of dialog window
dialogPrompt - dialog prompt message
errorMsg - message shown when new name match one of names specified on list set 'with setExistLabelList'
Method Detail

getResult

public String getResult()

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

projectExists

protected boolean projectExists(String projectName)

setExistLabelList

public void setExistLabelList(List<String> existLabelList)


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