pl.edu.agh.cast.ui.dialogs
Class GetNewNameDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
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
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 |
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 styletitle
- title of dialog windowdialogPrompt
- dialog prompt messageerrorMsg
- message shown when new name match one of names specified on list set 'with setExistLabelList'
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.