Class 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static booleancanExternalizeTexts​(java.util.List<DesignerProp> list)
      Verifies if the externalize text operation produces something.
      voidcheckStateChanged​(org.eclipse.jface.viewers.CheckStateChangedEvent event)
      Check state changed.
      voiddoubleClick​(org.eclipse.jface.viewers.DoubleClickEvent event)
      Double-clicked: toggle entire subtree state.
      voidopen()
      Open the dialog.
      • 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

      • 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 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​(java.util.List<DesignerProp> list)
        Verifies if the externalize text operation produces something.
        Returns:
        true if valid, false otherwise.