• 大小: 2.21MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-28
  • 语言: 其他
  • 标签: activate  power  mode  

资源简介

activate-power-mode-master.zip 代码编辑器特效插件 可用于IntelliJ IDEA/Atom

资源截图

代码片段和文件信息

package com.jiyuanime;

import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.project.ProjectManagerAdapter;
import com.jiyuanime.config.Config;
import org.jetbrains.annotations.NotNull;

/**
 * com.jiyuanime.ActivatePowerModeApplicationPlugin
 * Created by suika on 15-12-13.
 */
public class ActivatePowerModeApplicationPlugin implements ApplicationComponent {

    private Config.State state = Config.getInstance().state;

    public ActivatePowerModeApplicationPlugin() {}

    @Override
    public void initComponent() {
        ProjectManager.getInstance().addProjectManagerListener(new ProjectManagerAdapter() {
            @Override
            public void projectOpened(Project project) {
                if (state.IS_ENABLE)
                    ActivatePowerModeManage.getInstance().init(project);
                super.projectOpened(project);
            }

            @Override
            public void projectClosed(Project project) {
                ActivatePowerModeManage.getInstance().destroy(project true);
                super.projectClosed(project);
            }

            @Override
            public void projectClosing(Project project) {
                super.projectClosing(project);
            }

            @Override
            public boolean canCloseProject(Project project) {
                return super.canCloseProject(project);
            }
        });
    }

    @Override
    public void disposeComponent() {
        ActivatePowerModeManage.getInstance().destroyAll();
    }

    @Override
    @NotNull
    public String getComponentName() {
        return “com.jiyuanime.ActivatePowerModeApplicationPlugin“;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-09 05:02  activate-power-mode-master\
     文件        1867  2018-01-09 05:02  activate-power-mode-master\.gitignore
     目录           0  2018-01-09 05:02  activate-power-mode-master\.idea\
     文件          19  2018-01-09 05:02  activate-power-mode-master\.idea\.name
     文件         686  2018-01-09 05:02  activate-power-mode-master\.idea\compiler.xml
     目录           0  2018-01-09 05:02  activate-power-mode-master\.idea\copyright\
     文件          74  2018-01-09 05:02  activate-power-mode-master\.idea\copyright\profiles_settings.xml
     文件         159  2018-01-09 05:02  activate-power-mode-master\.idea\encodings.xml
     文件         318  2018-01-09 05:02  activate-power-mode-master\.idea\misc.xml
     文件         278  2018-01-09 05:02  activate-power-mode-master\.idea\modules.xml
     文件        9014  2018-01-09 05:02  activate-power-mode-master\.idea\uiDesigner.xml
     文件         167  2018-01-09 05:02  activate-power-mode-master\.idea\vcs.xml
     文件      515256  2018-01-09 05:02  activate-power-mode-master\ActivatePowerModePreview-2.gif
     文件     2083688  2018-01-09 05:02  activate-power-mode-master\ActivatePowerModePreview.gif
     文件        1322  2018-01-09 05:02  activate-power-mode-master\README.md
     文件         613  2018-01-09 05:02  activate-power-mode-master\activate-power-mode.iml
     目录           0  2018-01-09 05:02  activate-power-mode-master\resources\
     目录           0  2018-01-09 05:02  activate-power-mode-master\resources\meta-INF\
     文件        4637  2018-01-09 05:02  activate-power-mode-master\resources\meta-INF\plugin.xml
     目录           0  2018-01-09 05:02  activate-power-mode-master\resources\font\
     文件       69748  2018-01-09 05:02  activate-power-mode-master\resources\font\PressStart2P-Regular.ttf
     目录           0  2018-01-09 05:02  activate-power-mode-master\src\
     目录           0  2018-01-09 05:02  activate-power-mode-master\src\com\
     目录           0  2018-01-09 05:02  activate-power-mode-master\src\com\jiyuanime\
     文件        1792  2018-01-09 05:02  activate-power-mode-master\src\com\jiyuanime\ActivatePowerModeApplicationPlugin.java
     文件       16839  2018-01-09 05:02  activate-power-mode-master\src\com\jiyuanime\ActivatePowerModeManage.java
     目录           0  2018-01-09 05:02  activate-power-mode-master\src\com\jiyuanime\action\
     文件        1436  2018-01-09 05:02  activate-power-mode-master\src\com\jiyuanime\action\ActivatePowerEnableAction.java
     文件        1451  2018-01-09 05:02  activate-power-mode-master\src\com\jiyuanime\action\baseSwitchAction.java
     文件         598  2018-01-09 05:02  activate-power-mode-master\src\com\jiyuanime\action\ColorfulSwitchAction.java
     文件         775  2018-01-09 05:02  activate-power-mode-master\src\com\jiyuanime\action\ComboSwitchAction.java
............此处省略19个文件信息

评论

共有 条评论