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 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 interface org.eclipse.jface.viewers.IDoubleClickListener
    • checkStateChanged

      public void checkStateChanged(org.eclipse.jface.viewers.CheckStateChangedEvent event)
      Check state changed.
      Specified by:
      checkStateChanged in interface org.eclipse.jface.viewers.ICheckStateListener
    • canExternalizeTexts

      public static boolean canExternalizeTexts(List<DesignerProp> list)
      Verifies if the externalize text operation produces something.
      Returns:
      true if valid, false otherwise.