Quellcode durchsuchen

Merge pull request #235 from csmith/master

Remove first run actions extraction.
pull/236/head
Greg Holmes vor 9 Jahren
Ursprung
Commit
8bfd7ba863

+ 0
- 13
ui_swing/src/com/dmdirc/addons/ui_swing/wizard/firstrun/ExtractionStep.java Datei anzeigen

@@ -35,17 +35,13 @@ public abstract class ExtractionStep extends Step {
35 35
     private static final long serialVersionUID = 7431623190030730680L;
36 36
     /** Plugins checkbox. */
37 37
     protected final JCheckBox plugins;
38
-    /** Actions checkbox. */
39
-    protected final JCheckBox actions;
40 38
 
41 39
     /** Creates a new instance of StepOne. */
42 40
     public ExtractionStep() {
43 41
 
44 42
         plugins = new JCheckBox("Install core plugins?");
45
-        actions = new JCheckBox("Install core actions?");
46 43
 
47 44
         plugins.setSelected(true);
48
-        actions.setSelected(true);
49 45
 
50 46
         initComponents();
51 47
     }
@@ -64,15 +60,6 @@ public abstract class ExtractionStep extends Step {
64 60
         return plugins.isSelected();
65 61
     }
66 62
 
67
-    /**
68
-     * Returns the state of the actions checkbox.
69
-     *
70
-     * @return Actions checkbox state
71
-     */
72
-    public final boolean getActionsState() {
73
-        return actions.isSelected();
74
-    }
75
-
76 63
     @Override
77 64
     public String getTitle() {
78 65
         return "Core addon extraction";

+ 1
- 10
ui_swing/src/com/dmdirc/addons/ui_swing/wizard/firstrun/FirstRunExtractionStep.java Datei anzeigen

@@ -38,9 +38,7 @@ public final class FirstRunExtractionStep extends ExtractionStep {
38 38
     protected void initComponents() {
39 39
         setLayout(new MigLayout("fillx, wrap 1"));
40 40
 
41
-        TextLabel infoLabel;
42
-
43
-        infoLabel = new TextLabel("It appears that this is the first time "
41
+        final TextLabel infoLabel = new TextLabel("It appears that this is the first time "
44 42
                 + "that you have run DMDirc. "
45 43
                 + "This short wizard will help you setup DMDirc.\n\n"
46 44
                 + "DMDirc comes with a set of core plugins that add "
@@ -50,13 +48,6 @@ public final class FirstRunExtractionStep extends ExtractionStep {
50 48
                 + "plugins for you, tick the box below.");
51 49
         add(infoLabel, "growx, pushx");
52 50
         add(plugins, "");
53
-        infoLabel = new TextLabel("DMDirc also comes with a set of core"
54
-                + " 'actions' that serve as examples and add some basic"
55
-                + " functionality such as highlighting. If you would like"
56
-                + " the wizard to copy the core actions for you, tick the"
57
-                + " box below.");
58
-        add(infoLabel, "growx, pushx");
59
-        add(actions, "");
60 51
     }
61 52
 
62 53
 }

+ 1
- 14
ui_swing/src/com/dmdirc/addons/ui_swing/wizard/firstrun/SwingFirstRunWizard.java Datei anzeigen

@@ -24,7 +24,6 @@ package com.dmdirc.addons.ui_swing.wizard.firstrun;
24 24
 
25 25
 import com.dmdirc.ClientModule.GlobalConfig;
26 26
 import com.dmdirc.ClientModule.UserConfig;
27
-import com.dmdirc.actions.CoreActionExtractor;
28 27
 import com.dmdirc.addons.ui_swing.dialogs.profile.ProfileManagerDialog;
29 28
 import com.dmdirc.addons.ui_swing.injection.DialogProvider;
30 29
 import com.dmdirc.addons.ui_swing.injection.MainWindow;
@@ -55,8 +54,6 @@ public class SwingFirstRunWizard implements WizardListener, FirstRunWizard {
55 54
     private final CorePluginExtractor corePluginExtractor;
56 55
     /** Provider to use to obtain PMDs. */
57 56
     private final DialogProvider<ProfileManagerDialog> profileDialogProvider;
58
-    /** Core Actions Extractor. */
59
-    private final CoreActionExtractor coreActionExtractor;
60 57
 
61 58
     /**
62 59
      * Instantiate the wizard.
@@ -71,12 +68,10 @@ public class SwingFirstRunWizard implements WizardListener, FirstRunWizard {
71 68
     public SwingFirstRunWizard(@MainWindow final Window parentWindow,
72 69
             @UserConfig final ConfigProvider config,
73 70
             final CorePluginExtractor pluginExtractor, @GlobalConfig final IconManager iconManager,
74
-            final DialogProvider<ProfileManagerDialog> profileDialogProvider,
75
-            final CoreActionExtractor coreActionExtractor) {
71
+            final DialogProvider<ProfileManagerDialog> profileDialogProvider) {
76 72
         this.corePluginExtractor = pluginExtractor;
77 73
         this.config = config;
78 74
         this.profileDialogProvider = profileDialogProvider;
79
-        this.coreActionExtractor = coreActionExtractor;
80 75
 
81 76
         wizardDialog = new WizardDialog("Setup wizard", new ArrayList<>(), parentWindow,
82 77
                 ModalityType.APPLICATION_MODAL);
@@ -90,9 +85,6 @@ public class SwingFirstRunWizard implements WizardListener, FirstRunWizard {
90 85
         if (((ExtractionStep) wizardDialog.getStep(0)).getPluginsState()) {
91 86
             extractPlugins();
92 87
         }
93
-        if (((ExtractionStep) wizardDialog.getStep(0)).getActionsState()) {
94
-            extractActions();
95
-        }
96 88
 
97 89
         config.setOption("updater", "enable",
98 90
                 ((CommunicationStep) wizardDialog.getStep(1)).checkUpdates());
@@ -115,11 +107,6 @@ public class SwingFirstRunWizard implements WizardListener, FirstRunWizard {
115 107
         corePluginExtractor.extractCorePlugins(null);
116 108
     }
117 109
 
118
-    @Override
119
-    public void extractActions() {
120
-        coreActionExtractor.extractCoreActions();
121
-    }
122
-
123 110
     @Override
124 111
     public void display() {
125 112
         wizardDialog.addStep(new FirstRunExtractionStep());

Laden…
Abbrechen
Speichern