⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 explorerrightkeyactiongroup.java

📁 基于Eclipse RCP模型下的文档管理程序源代码
💻 JAVA
字号:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   ExplorerRightKeyActionGroup.java

package fileexplorer.action;

import org.eclipse.jface.action.*;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.ui.actions.ActionGroup;

public class ExplorerRightKeyActionGroup extends ActionGroup
{
    private class NewFolderAction extends Action
    {

        public void run()
        {
        }

        final ExplorerRightKeyActionGroup this$0;

        public NewFolderAction()
        {
            this$0 = ExplorerRightKeyActionGroup.this;
            super();
            setText(" \u65B0\u5EFA");
        }
    }

    private class CopyAction extends Action
    {

        public void run()
        {
        }

        final ExplorerRightKeyActionGroup this$0;

        public CopyAction()
        {
            this$0 = ExplorerRightKeyActionGroup.this;
            super();
            setText(" \u590D\u5236");
        }
    }

    private class PlasteAction extends Action
    {

        public void run()
        {
        }

        final ExplorerRightKeyActionGroup this$0;

        public PlasteAction()
        {
            this$0 = ExplorerRightKeyActionGroup.this;
            super();
            setText(" \u7C98\u8D34");
        }
    }

    private class RefreshAction extends Action
    {

        public void run()
        {
            tv.refresh();
        }

        final ExplorerRightKeyActionGroup this$0;

        public RefreshAction()
        {
            this$0 = ExplorerRightKeyActionGroup.this;
            super();
            setText(" \u5237\u65B0");
        }
    }


    public ExplorerRightKeyActionGroup(TreeViewer treeViewer)
    {
        tv = treeViewer;
    }

    public void fillContextMenu(IMenuManager mgr)
    {
        MenuManager menuManager = (MenuManager)mgr;
        menuManager.add(new CopyAction());
        menuManager.add(new PlasteAction());
        menuManager.add(new RefreshAction());
        menuManager.add(new NewFolderAction());
        Tree tree = tv.getTree();
        org.eclipse.swt.widgets.Menu menu = menuManager.createContextMenu(tree);
        tree.setMenu(menu);
    }

    private TreeViewer tv;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -