File Source: FirstRunExtractionStep.java

         /* 
    P/P   *  Method: com.dmdirc.addons.ui_swing.wizard.firstrun.FirstRunExtractionStep__static_init
          */
     1  /*
     2   * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
     3   *
     4   * Permission is hereby granted, free of charge, to any person obtaining a copy
     5   * of this software and associated documentation files (the "Software"), to deal
     6   * in the Software without restriction, including without limitation the rights
     7   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8   * copies of the Software, and to permit persons to whom the Software is
     9   * furnished to do so, subject to the following conditions:
    10   *
    11   * The above copyright notice and this permission notice shall be included in
    12   * all copies or substantial portions of the Software.
    13   *
    14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    20   * SOFTWARE.
    21   */
    22  
    23  package com.dmdirc.addons.ui_swing.wizard.firstrun;
    24  
    25  import com.dmdirc.addons.ui_swing.components.text.TextLabel;
    26  
    27  import net.miginfocom.swing.MigLayout;
    28  
    29  /**
    30   * Queries the user for which core actions they wish to extract.
    31   */
    32  public final class FirstRunExtractionStep extends ExtractionStep {
    33      
    34      /**
    35       * A version number for this class. It should be changed whenever the class
    36       * structure is changed (or anything else that would prevent serialized
    37       * objects being unserialized with the new class).
    38       */
    39      private static final long serialVersionUID = 2;
    40      
    41      /**
    42       * Creates a new instance of SetupStep.
    43       */
    44      public FirstRunExtractionStep() {
                 /* 
    P/P           *  Method: void com.dmdirc.addons.ui_swing.wizard.firstrun.FirstRunExtractionStep()
                  * 
                  *  Postconditions:
                  *    this.actions == &new JCheckBox(ExtractionStep#2)
                  *    this.plugins == &new JCheckBox(ExtractionStep#1)
                  *    new JCheckBox(ExtractionStep#1) num objects == 1
                  *    new JCheckBox(ExtractionStep#2) num objects == 1
                  */
    45          super();
    46      }
    47      
    48      /** {@inheritDoc} */
    49      @Override
    50      protected void initComponents() {
                 /* 
    P/P           *  Method: void initComponents()
                  */
    51          setLayout(new MigLayout("fillx, wrap 1"));
    52          
    53          TextLabel infoLabel;
    54          
    55          infoLabel = new TextLabel("It appears that this is the first time "
    56                  + "that you have run DMDirc. "
    57                  + "This short wizard will help you setup DMDirc.\n\n"
    58                  + "DMDirc comes with a set of core plugins that add "
    59                  + "functionality such as channel logging to the client. "
    60                  + "Thse plugins need to be copied into your home directory to"
    61                  + " be used. If you would like the wizard to copy the core "
    62                  + "plugins for you, tick the box below.");
    63          add(infoLabel, "growx, pushx");
    64          add(plugins, "");
    65          infoLabel = new TextLabel("DMDirc also comes with a set of core"
    66                  + " 'actions' that serve as examples and add some basic"
    67                  + " functionality such as highlighting. If you would like"
    68                  + " the wizard to copy the core actions for you, tick the"
    69                  + " box below.");
    70          add(infoLabel, "growx, pushx");
    71          add(actions, "");
    72      }
    73  }








SofCheck Inspector Build Version : 2.17854
FirstRunExtractionStep.java 2009-Jun-25 01:54:24
FirstRunExtractionStep.class 2009-Sep-02 17:04:16