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
ConstructorDescriptionExternalizeTextsDialog
(org.eclipse.swt.widgets.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
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.Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
Constructor Details
ExternalizeTextsDialog
public ExternalizeTextsDialog(org.eclipse.swt.widgets.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
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
Verifies if the externalize text operation produces something.- Returns:
- true if valid, false otherwise.