Java Code Examples for ghidra.framework.plugintool.PluginTool#isVisible()
The following examples show how to use
ghidra.framework.plugintool.PluginTool#isVisible() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractToolSavingTest.java From ghidra with Apache License 2.0 | 6 votes |
protected void closeToolAndWait(PluginTool tool) { testEnv.closeTool(tool); int maxTimeout = 10000; int sleepTime = 250; int waitTime = 0; while (tool.isVisible() && waitTime < maxTimeout) { try { Thread.sleep(sleepTime); } catch (InterruptedException e) { // don't care, will try again } waitTime += sleepTime; } assertTrue("Unable to close tool for test!", !tool.isVisible()); }
Example 2
Source File: AbstractToolSavingTest.java From ghidra with Apache License 2.0 | 5 votes |
protected void setBookmarkProviderShowing(final PluginTool tool, final boolean visible) { BookmarkPlugin plugin = getPlugin(tool, BookmarkPlugin.class); final ComponentProvider provider = (ComponentProvider) getInstanceField("provider", plugin); runSwing(() -> tool.showComponentProvider(provider, visible)); boolean newVisibleState = tool.isVisible(provider); assertEquals(visible, newVisibleState); }
Example 3
Source File: AbstractToolSavingTest.java From ghidra with Apache License 2.0 | 4 votes |
protected boolean isBookmarkProviderShowing(PluginTool tool) { BookmarkPlugin plugin = getPlugin(tool, BookmarkPlugin.class); ComponentProvider provider = (ComponentProvider) getInstanceField("provider", plugin); return tool.isVisible(provider); }