The Meta-Environment API

nl.cwi.sen1.gui.plugin
Class Dialog

java.lang.Object
  extended by nl.cwi.sen1.gui.plugin.DefaultStudioPlugin
      extended by nl.cwi.sen1.gui.plugin.Dialog
All Implemented Interfaces:
DialogTif, nl.cwi.sen1.gui.plugin.StudioPlugin

public class Dialog
extends nl.cwi.sen1.gui.plugin.DefaultStudioPlugin
implements DialogTif


Field Summary
private  nl.cwi.sen1.configapi.Factory factory
           
private  ProgressList progressList
           
private  javax.swing.JFileChooser sharedChooser
           
private  javax.swing.filechooser.FileFilter sharedFilter
           
private  nl.cwi.sen1.gui.Studio studio
           
private static java.lang.String TOOL_NAME
           
private static java.lang.String WORKING_DIRECTORY
           
 
Constructor Summary
Dialog()
           
 
Method Summary
private  java.lang.String buildSelectedFile(java.io.File file, java.lang.String extension)
           
 void closeProgressList()
           
 java.lang.String getName()
           
 void initStudioPlugin(nl.cwi.sen1.gui.Studio studio)
           
 void recTerminate(aterm.ATerm t0)
           
 aterm.ATerm showDirectoryDialog(java.lang.String title, aterm.ATerm paths)
           
 void showErrorDialog(java.lang.String errorMessage)
           
 void showErrorDialogWithArguments(java.lang.String errorMessage, aterm.ATerm args)
           
 aterm.ATerm showFileDialog(java.lang.String title, aterm.ATerm paths, java.lang.String extension)
           
 void showMessageDialog(java.lang.String message)
           
 void showProgressList(java.lang.String title)
           
 void showProgressMessage(java.lang.String message)
           
 void showProgressMessageWithArguments(java.lang.String format, aterm.ATerm args)
           
 aterm.ATerm showQuestionDialog(java.lang.String question)
           
 
Methods inherited from class nl.cwi.sen1.gui.plugin.DefaultStudioPlugin
addStudioPluginListener, fireStudioPluginClosed, removeStudioPluginListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKING_DIRECTORY

private static final java.lang.String WORKING_DIRECTORY
See Also:
Constant Field Values

TOOL_NAME

private static final java.lang.String TOOL_NAME
See Also:
Constant Field Values

studio

private nl.cwi.sen1.gui.Studio studio

factory

private nl.cwi.sen1.configapi.Factory factory

progressList

private ProgressList progressList

sharedChooser

private javax.swing.JFileChooser sharedChooser

sharedFilter

private javax.swing.filechooser.FileFilter sharedFilter
Constructor Detail

Dialog

public Dialog()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface nl.cwi.sen1.gui.plugin.StudioPlugin

initStudioPlugin

public void initStudioPlugin(nl.cwi.sen1.gui.Studio studio)
Specified by:
initStudioPlugin in interface nl.cwi.sen1.gui.plugin.StudioPlugin

showDirectoryDialog

public aterm.ATerm showDirectoryDialog(java.lang.String title,
                                       aterm.ATerm paths)
Specified by:
showDirectoryDialog in interface DialogTif

showFileDialog

public aterm.ATerm showFileDialog(java.lang.String title,
                                  aterm.ATerm paths,
                                  java.lang.String extension)
Specified by:
showFileDialog in interface DialogTif

buildSelectedFile

private java.lang.String buildSelectedFile(java.io.File file,
                                           java.lang.String extension)

recTerminate

public void recTerminate(aterm.ATerm t0)
Specified by:
recTerminate in interface DialogTif

showProgressMessage

public void showProgressMessage(java.lang.String message)
Specified by:
showProgressMessage in interface DialogTif

showProgressList

public void showProgressList(java.lang.String title)
Specified by:
showProgressList in interface DialogTif

closeProgressList

public void closeProgressList()
Specified by:
closeProgressList in interface DialogTif

showProgressMessageWithArguments

public void showProgressMessageWithArguments(java.lang.String format,
                                             aterm.ATerm args)
Specified by:
showProgressMessageWithArguments in interface DialogTif

showQuestionDialog

public aterm.ATerm showQuestionDialog(java.lang.String question)
Specified by:
showQuestionDialog in interface DialogTif

showMessageDialog

public void showMessageDialog(java.lang.String message)
Specified by:
showMessageDialog in interface DialogTif

showErrorDialog

public void showErrorDialog(java.lang.String errorMessage)
Specified by:
showErrorDialog in interface DialogTif

showErrorDialogWithArguments

public void showErrorDialogWithArguments(java.lang.String errorMessage,
                                         aterm.ATerm args)
Specified by:
showErrorDialogWithArguments in interface DialogTif

The Meta-Environment API