com.tensegrity.gui.swt.dialog
Class SwtOpenFileConflictDialog

java.lang.Object
  extended byorg.eclipse.swt.widgets.Dialog
      extended bycom.tensegrity.gui.swt.dialog.SwtBaseDialog
          extended bycom.tensegrity.gui.swt.dialog.SwtOpenFileConflictDialog
All Implemented Interfaces:
Disposable, Evaluable, java.util.EventListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener

public class SwtOpenFileConflictDialog
extends SwtBaseDialog

TODO - IMPLEMENT THIS DIOALOG !

WARNING! DO NOT USE THIS CLASS. IT IS NOT IMPLEMENTED.

Version:
$Id: SwtOpenFileConflictDialog.java,v 1.10 2005/11/09 11:34:05 ArndHouben Exp $
Author:
S�bastien Guyon

Field Summary
 
Fields inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog
resourceClass, resourcePath
 
Constructor Summary
SwtOpenFileConflictDialog(UIManager uiManager, org.eclipse.swt.widgets.Display display, java.lang.String keyTitle, java.lang.String keyDescription, ElementDefinitionWrapper edw, java.util.List layoutConflicts, LayoutController layoutController, boolean styleConflict, boolean styleNameConflict, boolean geometryConflict, boolean rulesConflict, java.util.List imageConflicts, boolean showRulesOptionApplyLoaded)
          Creates a new LayoutContextDialog.
 
Method Summary
 int getGeometriesOption()
          Returns the integer identifier representing the selected RadioButton.
 int getImagesOption()
          Returns the integer identifier representing the selected RadioButton.
 int getLayoutContextOption()
          Returns the integer identifier representing the selected RadioButton.
 java.lang.String getNewGeometryDescName(java.lang.String oldName)
          The string for the new geometry.
 java.lang.String getNewGeometryItemName(java.lang.String oldName)
          The string for the new geometry.
 java.lang.String getNewImageName(java.lang.String oldName)
          The string for the new image.
 java.lang.String getNewLayoutContextName(java.lang.String oldName)
          The string for the new layout context.
 java.lang.String getNewRuleName(java.lang.String oldName)
          Returns the new name for a conflicting rule
 java.lang.String getNewStyleDescName(java.lang.String oldName)
          The string for the new style.
 java.lang.String getNewStyleItemName(java.lang.String oldName)
          The string for the new style.
 int getRulesOption()
          Returns the integer identifier representing the selected RadioButton.
 int getStyleNamesOption()
           At the current stage of development this only returns ElementDefinitionUtil.APPLY_LOADED
 int getStylesOption()
          Returns the integer identifier representing the selected RadioButton.
 void setGeometriesOption(int option)
          Sets the option for geometry conflicts
 void setImageOption(int option)
          Sets the option for layout context conflicts
 void setLayoutContextOption(int option)
          Sets the option for layout context conflicts
 void setNewImageName(java.lang.String oldName, java.lang.String name)
          Sets the new name for the image
 void setNewLayoutContextName(java.lang.String oldName, java.lang.String name)
          Sets the new name for the layout context
 void setRulesOption(int option)
          Sets the option for rules conflicts
 void setStyleNamesOption(int option)
          Sets the option for style name conflicts
 void setStylesOption(int option)
          Sets the option for style conflicts
 boolean wasCancelled()
          Returns true if the user selected the cancel option.
 
Methods inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog
applyEvList, dispose, getDialog, getTextCompositeLayoutData, getUIManager, installEvList, keyPressed, keyReleased, setDefaultResourceClassAndURL, setDescriptionText, setResourceClassAndURL, setTitleText, show
 
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

SwtOpenFileConflictDialog

public SwtOpenFileConflictDialog(UIManager uiManager,
                                 org.eclipse.swt.widgets.Display display,
                                 java.lang.String keyTitle,
                                 java.lang.String keyDescription,
                                 ElementDefinitionWrapper edw,
                                 java.util.List layoutConflicts,
                                 LayoutController layoutController,
                                 boolean styleConflict,
                                 boolean styleNameConflict,
                                 boolean geometryConflict,
                                 boolean rulesConflict,
                                 java.util.List imageConflicts,
                                 boolean showRulesOptionApplyLoaded)
Creates a new LayoutContextDialog.

Parameters:
uiManager - ui manager reference.
display - the frame to refer to.
keyTitle - the uimanager key for the title of the dialog.
keyDescription - the uimanager key for the description text of the dialog.
edw - the ElementDefinitionWrapper
layoutConflicts - List with names of all layout context that have conflicts. If this list is not empty the layout conflict panel will be shown
layoutController - the layout controller of the VisualGraphView, used to validate the new name for a layout context. Ignored, if layoutConflict is false
styleConflict - true, to show the style conflict panel
styleNameConflict - true, to show the style name conflict panel
geometryConflict - true, to show the geometry conflict panel
rulesConflict - true, to show the rules conflict panel
imageConflicts - List with names of all images that have conflicts. If this list is not empty the image conflict panel will be shown
showRulesOptionApplyLoaded - true, to show the rules option "Apply Loaded"
Method Detail

wasCancelled

public boolean wasCancelled()
Returns true if the user selected the cancel option.

Returns:
a boolean indicating whether the dialog has been cancelled or not.

getNewLayoutContextName

public java.lang.String getNewLayoutContextName(java.lang.String oldName)
The string for the new layout context.

Parameters:
oldName - The old name of the layout context
Returns:
a string to be used as new name for the layout context.

getNewRuleName

public java.lang.String getNewRuleName(java.lang.String oldName)
Returns the new name for a conflicting rule

Parameters:
oldName - The old name of the rule
Returns:
a string to be used as new name for the rule.

getNewStyleDescName

public java.lang.String getNewStyleDescName(java.lang.String oldName)
The string for the new style.

Parameters:
oldName - The old name of the style
Returns:
a string to be used as new name for the style.

getNewStyleItemName

public java.lang.String getNewStyleItemName(java.lang.String oldName)
The string for the new style.

Parameters:
oldName - The old name of the style
Returns:
a string to be used as new name for the style.

getNewGeometryDescName

public java.lang.String getNewGeometryDescName(java.lang.String oldName)
The string for the new geometry.

Parameters:
oldName - The old name of the geometry
Returns:
a string to be used as new name for the geometry.

getNewGeometryItemName

public java.lang.String getNewGeometryItemName(java.lang.String oldName)
The string for the new geometry.

Parameters:
oldName - The old name of the geometry
Returns:
a string to be used as new name for the geometry.

getNewImageName

public java.lang.String getNewImageName(java.lang.String oldName)
The string for the new image.

Parameters:
oldName - The old name of the image
Returns:
a string to be used as new name for the image.

getLayoutContextOption

public int getLayoutContextOption()
Returns the integer identifier representing the selected RadioButton. In case of RENAME you can use the getText method to retrieve the new name for the layout context.

Returns:
USE, EXISTING or RENAME.

getImagesOption

public int getImagesOption()
Returns the integer identifier representing the selected RadioButton. In case of RENAME you can use the getText method to retrieve the new name for the layout context.

Returns:
USE, EXISTING or RENAME.

getStylesOption

public int getStylesOption()
Returns the integer identifier representing the selected RadioButton.

Returns:
USE or EXISTING

getStyleNamesOption

public int getStyleNamesOption()

At the current stage of development this only returns ElementDefinitionUtil.APPLY_LOADED

Returns:
at the current stage of development this only returns ElementDefinitionUtil.APPLY_LOADED

getGeometriesOption

public int getGeometriesOption()
Returns the integer identifier representing the selected RadioButton.

Returns:
USE or EXISTING

getRulesOption

public int getRulesOption()
Returns the integer identifier representing the selected RadioButton.

Returns:
USE or EXISTING

setNewLayoutContextName

public void setNewLayoutContextName(java.lang.String oldName,
                                    java.lang.String name)
Sets the new name for the layout context

Parameters:
oldName - The old name of the layout context
name - the new name for the layout context

setNewImageName

public void setNewImageName(java.lang.String oldName,
                            java.lang.String name)
Sets the new name for the image

Parameters:
oldName - The old name of the image
name - the new name for the image

setLayoutContextOption

public void setLayoutContextOption(int option)
Sets the option for layout context conflicts

Parameters:
option - The option to set

setImageOption

public void setImageOption(int option)
Sets the option for layout context conflicts

Parameters:
option - The option to set

setStylesOption

public void setStylesOption(int option)
Sets the option for style conflicts

Parameters:
option - The option to set

setStyleNamesOption

public void setStyleNamesOption(int option)
Sets the option for style name conflicts

Parameters:
option - The option to set

setGeometriesOption

public void setGeometriesOption(int option)
Sets the option for geometry conflicts

Parameters:
option - The option to set

setRulesOption

public void setRulesOption(int option)
Sets the option for rules conflicts

Parameters:
option - The option to set


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.