Package com.iizigo.text
Class ExternalizeTextsDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
com.iizigo.text.ExternalizeTextsDialog
- All Implemented Interfaces:
ICheckStateListener
,IDoubleClickListener
public class ExternalizeTextsDialog extends Dialog implements IDoubleClickListener, ICheckStateListener
Dialog used for text table externalize strings for KStringProp's and TooltipProp's.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorDescriptionExternalizeTextsDialog
(Shell parent, EditorTextTable textTable, List<DesignerProp> list, IPropUndoRedo undoRedo) Create the dialog.Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canExternalizeTexts
(List<DesignerProp> list) Verifies if the externalize text operation produces something.void
Check state changed.void
doubleClick
(DoubleClickEvent event) Double-clicked: toggle entire subtree state.void
open()
Open the dialog.
Constructor Details
ExternalizeTextsDialog
public ExternalizeTextsDialog(Shell parent, EditorTextTable textTable, List<DesignerProp> list, IPropUndoRedo undoRedo) Create the dialog.- Parameters:
parent
- The parent shell.textTable
- Text table for externalized texts.
Method Details
open
public void open()Open the dialog.doubleClick
Double-clicked: toggle entire subtree state.- Specified by:
doubleClick
in interfaceIDoubleClickListener
checkStateChanged
Check state changed.- Specified by:
checkStateChanged
in interfaceICheckStateListener
canExternalizeTexts
Verifies if the externalize text operation produces something.- Returns:
- true if valid, false otherwise.