1 /* 2 * Copyright (c) 2022 Guangzhou Digitalchina Information Technology Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 package com.sk.ng; 16 17 import com.intellij.openapi.actionSystem.AnAction; 18 import com.intellij.openapi.actionSystem.AnActionEvent; 19 import com.intellij.openapi.project.Project; 20 import com.sk.dialog.GenerateDialog; 21 import org.jetbrains.annotations.NotNull; 22 23 /** 24 * 工具菜单入口 25 * 26 * @author: liulongc digitalchina.com 27 * @see: tool conversion plug-in 28 * @version: v1.0.0 29 * @since 2022-05-27 30 */ 31 public class GenMenuDTS extends AnAction { 32 33 @Override actionPerformed(@otNull AnActionEvent anActionEvent)34 public void actionPerformed(@NotNull AnActionEvent anActionEvent) { 35 Project project = anActionEvent.getProject(); 36 37 if (project == null) { 38 return; 39 } 40 GenerateDialog wrapper = new GenerateDialog(project, "", "", ""); 41 wrapper.showAndGet(); 42 } 43 44 } 45