mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GT-2925 - Key Bindings - Support Window Menu Provider Key Bindings -
Step 3 - removed old plugin pattern of creating special actions to show their respective providers; updated inception information for new action
This commit is contained in:
parent
f510ddf338
commit
fa75f7dff6
32 changed files with 296 additions and 425 deletions
|
@ -143,13 +143,17 @@ class ShowComponentAction extends DockingAction implements Comparable<ShowCompon
|
|||
public String getHelpInfo() {
|
||||
StringBuilder buffy = new StringBuilder(super.getHelpInfo());
|
||||
|
||||
Class<? extends ComponentProvider> clazz = info.getProvider().getClass();
|
||||
ComponentProvider provider = info.getProvider();
|
||||
Class<? extends ComponentProvider> clazz = provider.getClass();
|
||||
String className = clazz.getName();
|
||||
String filename = className.substring(className.lastIndexOf('.') + 1);
|
||||
String javaName = filename + ".java";
|
||||
|
||||
buffy.append(" ").append("PROVIDER: ").append(info.getName()).append(' ');
|
||||
buffy.append('(').append(javaName).append(":1)");
|
||||
DockingActionIf showAction = provider.getShowProviderAction();
|
||||
String realInception = showAction.getInceptionInformation();
|
||||
buffy.append(" ").append(realInception).append("\n ");
|
||||
|
||||
buffy.append(" ").append("PROVIDER: ").append(filename).append(' ');
|
||||
buffy.append('(').append(provider.getOwner()).append(")");
|
||||
buffy.append("\n ");
|
||||
|
||||
return buffy.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue