SetUpJsModuleAction -> JsModuleSetUp and no longer is an action.
Fix spacing in build.xml
This commit is contained in:
@@ -426,7 +426,7 @@
|
||||
</target>
|
||||
|
||||
<target name="dist"
|
||||
depends="init,prepareDist,injectorsGenerator,generateInjectors,compiler,compilerSources,antTools,jdkHeaders,runtime,lang, jslib"/>
|
||||
depends="init,prepareDist,injectorsGenerator,generateInjectors,compiler,compilerSources,antTools,jdkHeaders,runtime,lang,jslib"/>
|
||||
|
||||
<target name="zip" depends="dist">
|
||||
<zip destfile="${output}/${output.name}.zip">
|
||||
|
||||
@@ -36,10 +36,6 @@
|
||||
<keyboard-shortcut keymap="$default" first-keystroke="control shift Q"/>
|
||||
<add-to-group group-id="CodeMenu" anchor="last"/>
|
||||
</action>
|
||||
<action id="SetUpJsModuleAction" class="org.jetbrains.jet.plugin.actions.SetUpJsModuleAction"
|
||||
text="Set up Kotlin to JavaScript module">
|
||||
<add-to-group group-id="CodeMenu" anchor="last"/>
|
||||
</action>
|
||||
<action id="CopyAsDiagnosticTest" class="org.jetbrains.jet.plugin.actions.CopyAsDiagnosticTestAction"
|
||||
text="Copy Current File As Diagnostic Test">
|
||||
<keyboard-shortcut keymap="$default" first-keystroke="control alt shift T"/>
|
||||
|
||||
+1
-2
@@ -50,7 +50,6 @@ import com.intellij.ui.EditorNotificationPanel;
|
||||
import com.intellij.ui.EditorNotifications;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.plugin.JetFileType;
|
||||
import org.jetbrains.jet.plugin.actions.SetUpJsModuleAction;
|
||||
import org.jetbrains.jet.utils.PathUtil;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -174,7 +173,7 @@ public class ConfigureKotlinLibraryNotificationProvider implements EditorNotific
|
||||
}
|
||||
|
||||
private void setUpJSModule(@NotNull Module module) {
|
||||
SetUpJsModuleAction.doSetUpModule(module.getProject());
|
||||
JsModuleSetUp.doSetUpModule(module.getProject());
|
||||
updateNotifications();
|
||||
}
|
||||
|
||||
|
||||
+4
-10
@@ -14,13 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.jet.plugin.actions;
|
||||
package org.jetbrains.jet.plugin.quickfix;
|
||||
|
||||
import com.intellij.notification.Notification;
|
||||
import com.intellij.notification.NotificationType;
|
||||
import com.intellij.notification.Notifications;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.ModuleRootManager;
|
||||
@@ -40,13 +38,9 @@ import static org.jetbrains.jet.plugin.k2jsrun.K2JSRunnerUtils.copyFileToDir;
|
||||
/**
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class SetUpJsModuleAction extends AnAction {
|
||||
@Override
|
||||
public void actionPerformed(AnActionEvent event) {
|
||||
if (event == null) {
|
||||
return;
|
||||
}
|
||||
doSetUpModule(event.getProject());
|
||||
public final class JsModuleSetUp {
|
||||
|
||||
private JsModuleSetUp() {
|
||||
}
|
||||
|
||||
public static void doSetUpModule(@Nullable Project project) {
|
||||
Reference in New Issue
Block a user