Class OpenTorrentWindow

    • Field Detail

      • CONFIG_REFERRER_DEFAULT

        protected static java.lang.String CONFIG_REFERRER_DEFAULT
      • shellForChildren

        private org.eclipse.swt.widgets.Shell shellForChildren
      • parent

        private org.eclipse.swt.widgets.Shell parent
      • btnBrowseTorrent

        private org.eclipse.swt.widgets.Button btnBrowseTorrent
      • btnBrowseFolder

        private org.eclipse.swt.widgets.Button btnBrowseFolder
      • btnPasteOrClear

        private org.eclipse.swt.widgets.Button btnPasteOrClear
      • btnPasteOrClearIsPaste

        private boolean btnPasteOrClearIsPaste
      • referrer_combo

        private org.eclipse.swt.widgets.Combo referrer_combo
      • last_referrer

        private java.lang.String last_referrer
      • referrers

        private java.util.List<java.lang.String> referrers
      • lastCopiedFromClip

        private java.lang.String lastCopiedFromClip
    • Constructor Detail

      • OpenTorrentWindow

        public OpenTorrentWindow​(org.eclipse.swt.widgets.Shell parent)
    • Method Detail

      • swt_createWindow

        private void swt_createWindow()
      • openTorrent

        protected void openTorrent​(java.lang.String text,
                                   java.lang.String newReferrer)
      • dispose

        protected void dispose()
      • swt_addButtons

        private void swt_addButtons​(org.eclipse.swt.widgets.Composite parent)
      • ensureTrailingSeparator

        private java.lang.String ensureTrailingSeparator​(java.lang.String sPath)
      • addTorrentsToWindow

        private int addTorrentsToWindow​(java.lang.String sTorrentFilePath,
                                        java.lang.String[] sTorrentFilenames)
      • addTorrentsFromTextList

        private int addTorrentsFromTextList​(java.lang.String sClipText,
                                            boolean bVerifyOnly)
        Add Torrent(s) to Window using a text list of files/urls/torrents
        Parameters:
        sClipText - Text to parse
        bVerifyOnly - Only check if there's potential torrents in the text, do not try to add the torrents.
        Returns:
        Number of torrents added or found. When bVerifyOnly, this number may not be exact.
      • main

        public static void main​(java.lang.String[] args)
      • isDisposed

        private boolean isDisposed()
      • getUpdateUIName

        public java.lang.String getUpdateUIName()
        Description copied from interface: UIUpdatable
        A name for this UIUpdatable so we can track who's being bad
        Specified by:
        getUpdateUIName in interface UIUpdatable
        Returns:
        some name