GP-5720 - Drop Down Modes - Added modes to drop-down text fields to control how matches are found

This commit is contained in:
dragonmacher 2025-08-18 16:39:20 -04:00
parent dbb9e7feee
commit ce0c7b9229
35 changed files with 1631 additions and 678 deletions

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -19,8 +19,7 @@ import java.awt.*;
import javax.swing.JButton;
import ghidra.util.HelpLocation;
import ghidra.util.Msg;
import ghidra.util.*;
import help.HelpDescriptor;
import help.HelpService;
@ -64,6 +63,11 @@ public class DefaultHelpService implements HelpService {
// no-op
}
@Override
public void registerDynamicHelp(Object helpObject, DynamicHelpLocation helpLocation) {
// no-op
}
@Override
public HelpLocation getHelpLocation(Object object) {
return null;

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -18,6 +18,7 @@ package help;
import java.awt.Component;
import java.net.URL;
import ghidra.util.DynamicHelpLocation;
import ghidra.util.HelpLocation;
/**
@ -85,6 +86,14 @@ public interface HelpService {
*/
public void registerHelp(Object helpObject, HelpLocation helpLocation);
/**
* Registers a provider of dynamic help. See {@link DynamicHelpLocation} for more information.
*
* @param helpObject the object to associate the specified help location with
* @param helpLocation the dynamic help location
*/
public void registerDynamicHelp(Object helpObject, DynamicHelpLocation helpLocation);
/**
* Removes this object from the help system. This method is useful, for example,
* when a single Java {@link Component} will have different help locations