You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
992 B
44 lines
992 B
package com.fr.plugin.customexplorer; |
|
|
|
import com.fr.design.fun.impl.AbstractMenuHandler; |
|
import com.fr.design.menu.ShortCut; |
|
import com.fr.plugin.context.PluginContext; |
|
import com.fr.plugin.context.PluginMarker; |
|
import com.fr.plugin.customexplorer.action.ExplorerSettingAction; |
|
import com.fr.plugin.manage.PluginManager; |
|
import com.fr.stable.fun.Authorize; |
|
|
|
/** |
|
* @author fr.open |
|
* @create 2019/9/29 |
|
* 浏览器设置菜单 |
|
*/ |
|
public class ExplorerSettingMenuHandler extends AbstractMenuHandler { |
|
|
|
private static final int POSITION_OFFSET = 12; |
|
|
|
@Override |
|
public int insertPosition(int i) { |
|
return POSITION_OFFSET; |
|
} |
|
|
|
@Override |
|
public boolean insertSeparatorBefore() { |
|
return true; |
|
} |
|
|
|
@Override |
|
public boolean insertSeparatorAfter() { |
|
return true; |
|
} |
|
|
|
@Override |
|
public String category() { |
|
return FILE; |
|
} |
|
|
|
@Override |
|
public ShortCut shortcut() { |
|
return new ExplorerSettingAction(); |
|
} |
|
}
|
|
|