Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.actions.ui
Class CopyToFileDialog

java.lang.Object
  extended by SystemPromptDialog
      extended by com.ibm.etools.systems.application.visual.editor.actions.ui.CopyToFileDialog

public class CopyToFileDialog
extends SystemPromptDialog

Dialog prompts for a destination to copy application diagram model topology.


Field Summary
static String copyright
           
 
Constructor Summary
CopyToFileDialog(Shell shell, IPath path, String fileName)
          Creates an instance of the copy to file dialog.
 
Method Summary
protected  Control createInner(Composite parent)
           
 IPath getDestination()
          Returns the destination file selected by the user.
protected  Control getInitialFocusControl()
           
 boolean overwriteExisting()
          Returns if the existing file should be overwritten without warning.
protected  boolean processOK()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

CopyToFileDialog

public CopyToFileDialog(Shell shell,
                        IPath path,
                        String fileName)
Creates an instance of the copy to file dialog.

Parameters:
shell - the parent shell
path - the default path to store the image or null
fileName - A default filename or null if the default file name should be used.
Method Detail

createInner

protected Control createInner(Composite parent)

getInitialFocusControl

protected Control getInitialFocusControl()

overwriteExisting

public boolean overwriteExisting()
Returns if the existing file should be overwritten without warning.

Returns:
true if the existing file should be overwritten without warning.

processOK

protected boolean processOK()
See Also:
com.ibm.etools.systems.core.ui.dialogs.SystemPromptDialog#processOK()

getDestination

public IPath getDestination()
Returns the destination file selected by the user.

Returns:
folder and filename

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.