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:
Przemyslaw Sroka, Krzysztof Zdebski

Constructor Summary
GetNewNameDialog(org.eclipse.swt.widgets.Shell parent, int style, java.lang.String dialogTitle, java.lang.String dialogPrompt, java.lang.String errorMsg)
           
 
Method Summary
 java.lang.String getResult()
           
 void open(java.lang.String currentName)
          Opens dialog with current name specified for changes.
protected  boolean projectExists(java.lang.String projectName)
           
 void setExistLabelList(java.util.List<java.lang.String> existLabelList)
           
 boolean wasCancelled()
           
 
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,
                        java.lang.String dialogTitle,
                        java.lang.String dialogPrompt,
                        java.lang.String errorMsg)
Parameters:
parent - parent shell
style - SWT window style
dialogTitle - title of dialog window
errorMsg - message shown when new name match one of names specified on list set 'with setExistLabelList'
Method Detail

getResult

public java.lang.String getResult()

wasCancelled

public boolean wasCancelled()

open

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

Parameters:
currentName -

projectExists

protected boolean projectExists(java.lang.String projectName)

setExistLabelList

public void setExistLabelList(java.util.List<java.lang.String> existLabelList)


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.