mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-1 updated help linking for some front-end actions
This commit is contained in:
parent
e115015bbe
commit
b64df409dc
4 changed files with 8 additions and 3 deletions
|
@ -25,6 +25,7 @@ import docking.action.MenuData;
|
|||
import generic.theme.GIcon;
|
||||
import ghidra.framework.main.datatree.DataTreeClipboardUtils;
|
||||
import ghidra.framework.main.datatree.FrontEndProjectTreeContext;
|
||||
import ghidra.util.HelpLocation;
|
||||
|
||||
public class ProjectDataCopyAction extends ProjectDataCopyCutBaseAction {
|
||||
private static final Icon icon = new GIcon("icon.projectdata.copy");
|
||||
|
@ -33,7 +34,7 @@ public class ProjectDataCopyAction extends ProjectDataCopyCutBaseAction {
|
|||
super("Copy", owner);
|
||||
setPopupMenuData(new MenuData(new String[] { "Copy" }, icon, group));
|
||||
setKeyBindingData(new KeyBindingData('C', InputEvent.CTRL_DOWN_MASK));
|
||||
markHelpUnnecessary();
|
||||
setHelpLocation(new HelpLocation("FrontEndPlugin", "Copy"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -25,6 +25,7 @@ import docking.action.MenuData;
|
|||
import docking.widgets.tree.GTreeNode;
|
||||
import generic.theme.GIcon;
|
||||
import ghidra.framework.main.datatree.*;
|
||||
import ghidra.util.HelpLocation;
|
||||
|
||||
public class ProjectDataCutAction extends ProjectDataCopyCutBaseAction {
|
||||
private static final Icon ICON = new GIcon("icon.projectdata.cut");
|
||||
|
@ -33,7 +34,7 @@ public class ProjectDataCutAction extends ProjectDataCopyCutBaseAction {
|
|||
super("Cut", owner);
|
||||
setPopupMenuData(new MenuData(new String[] { "Cut" }, ICON, group));
|
||||
setKeyBindingData(new KeyBindingData('X', InputEvent.CTRL_DOWN_MASK));
|
||||
markHelpUnnecessary();
|
||||
setHelpLocation(new HelpLocation("FrontEndPlugin", "Cut"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -26,6 +26,7 @@ import docking.action.MenuData;
|
|||
import docking.widgets.tree.GTreeNode;
|
||||
import generic.theme.GIcon;
|
||||
import ghidra.framework.main.datatree.*;
|
||||
import ghidra.util.HelpLocation;
|
||||
import ghidra.util.Msg;
|
||||
import ghidra.util.task.TaskLauncher;
|
||||
|
||||
|
@ -36,7 +37,7 @@ public class ProjectDataPasteAction extends ProjectDataCopyCutBaseAction {
|
|||
super("Paste", owner);
|
||||
setPopupMenuData(new MenuData(new String[] { "Paste" }, ICON, group));
|
||||
setKeyBindingData(new KeyBindingData('V', InputEvent.CTRL_DOWN_MASK));
|
||||
markHelpUnnecessary();
|
||||
setHelpLocation(new HelpLocation("FrontEndPlugin", "Paste"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,6 +27,7 @@ import ghidra.framework.main.datatable.ProjectTreeAction;
|
|||
import ghidra.framework.main.datatree.*;
|
||||
import ghidra.framework.model.DomainFile;
|
||||
import ghidra.framework.model.DomainFolder;
|
||||
import ghidra.util.HelpLocation;
|
||||
import ghidra.util.Msg;
|
||||
import resources.Icons;
|
||||
import resources.MultiIcon;
|
||||
|
@ -37,6 +38,7 @@ public class ProjectDataPasteLinkAction extends ProjectTreeAction {
|
|||
public ProjectDataPasteLinkAction(String owner, String group) {
|
||||
super("Paste Link", owner);
|
||||
setPopupMenuData(new MenuData(new String[] { "Paste as Link" }, getIcon(), group));
|
||||
setHelpLocation(new HelpLocation("FrontEndPlugin", "Create_File_Links"));
|
||||
}
|
||||
|
||||
private static Icon getIcon() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue