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