Skip to content

Commit

Permalink
Merge pull request #82 from shyim/plugin-command
Browse files Browse the repository at this point in the history
Fix plugin command, fixes #50
  • Loading branch information
Haehnchen authored Nov 22, 2018
2 parents 4421c91 + 8c2a9fb commit f67f16c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ public void windowClosing(WindowEvent e) {
this.namespaceComboBox.addItem("Frontend");
this.namespaceComboBox.addItem("Core");
this.namespaceComboBox.addItem("Backend");
this.namespaceComboBox.setEnabled(false);

this.namespaceComboBox.setSelectedIndex(0);

this.addLegacyCheckBox.addActionListener(e -> {
this.namespaceComboBox.setEnabled(((JCheckBox) e.getSource()).isSelected());
});
}

private void onOK() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ private static List<String> generateCommand(@NotNull PluginGeneratorSettings set
commands.add("sw-cli-tools.phar");
commands.add("plugin:create");

commands.add("--namespace=" + settings.getNamespace());

if (settings.getAddDummyFilter()) {
commands.add("--haveFilter");
}
Expand Down Expand Up @@ -178,6 +176,7 @@ private static List<String> generateCommand(@NotNull PluginGeneratorSettings set

if (settings.isLegacyStructure()) {
commands.add("--legacy");
commands.add("--namespace=" + settings.getNamespace());
}

commands.add(settings.getPluginName());
Expand Down

0 comments on commit f67f16c

Please sign in to comment.