mirror of
https://github.com/JHUAPL/CodeCut.git
synced 2026-04-27 03:01:27 -04:00
Fix help - fix deprecated Symbol API
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
<tocroot>
|
<tocroot>
|
||||||
<!-- Uncomment and adjust fields to add help topic to help system's Table of Contents
|
<!-- Uncomment and adjust fields to add help topic to help system's Table of Contents
|
||||||
<tocref id="Ghidra Functionality">
|
<tocref id="Ghidra Functionality">
|
||||||
<tocdef id="HelpAnchor" text="My Feature" target="help/topics/my_topic/help.html" />
|
<tocdef id="CodeCut" text="CodeCut Plugin" target="help/topics/codecut/help.html" />
|
||||||
</tocref>
|
</tocref>
|
||||||
-->
|
-->
|
||||||
</tocroot>
|
</tocroot>
|
||||||
|
|||||||
@@ -1,64 +0,0 @@
|
|||||||
/* ###
|
|
||||||
* IP: GHIDRA
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
WARNING!
|
|
||||||
This file is copied to all help directories. If you change this file, you must copy it
|
|
||||||
to each src/main/help/help/shared directory.
|
|
||||||
|
|
||||||
|
|
||||||
Java Help Note: JavaHelp does not accept sizes (like in 'margin-top') in anything but
|
|
||||||
px (pixel) or with no type marking.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
body { margin-bottom: 50px; margin-left: 10px; margin-right: 10px; margin-top: 10px; } /* some padding to improve readability */
|
|
||||||
li { font-family:times new roman; font-size:14pt; }
|
|
||||||
h1 { color:#000080; font-family:times new roman; font-size:36pt; font-style:italic; font-weight:bold; text-align:center; }
|
|
||||||
h2 { margin: 10px; margin-top: 20px; color:#984c4c; font-family:times new roman; font-size:18pt; font-weight:bold; }
|
|
||||||
h3 { margin-left: 10px; margin-top: 20px; color:#0000ff; font-family:times new roman; `font-size:14pt; font-weight:bold; }
|
|
||||||
h4 { margin-left: 10px; margin-top: 20px; font-family:times new roman; font-size:14pt; font-style:italic; }
|
|
||||||
|
|
||||||
/*
|
|
||||||
P tag code. Most of the help files nest P tags inside of blockquote tags (the was the
|
|
||||||
way it had been done in the beginning). The net effect is that the text is indented. In
|
|
||||||
modern HTML we would use CSS to do this. We need to support the Ghidra P tags, nested in
|
|
||||||
blockquote tags, as well as naked P tags. The following two lines accomplish this. Note
|
|
||||||
that the 'blockquote p' definition will inherit from the first 'p' definition.
|
|
||||||
*/
|
|
||||||
p { margin-left: 40px; font-family:times new roman; font-size:14pt; }
|
|
||||||
blockquote p { margin-left: 10px; }
|
|
||||||
|
|
||||||
p.providedbyplugin { color:#7f7f7f; margin-left: 10px; font-size:14pt; margin-top:100px }
|
|
||||||
p.ProvidedByPlugin { color:#7f7f7f; margin-left: 10px; font-size:14pt; margin-top:100px }
|
|
||||||
p.relatedtopic { color:#800080; margin-left: 10px; font-size:14pt; }
|
|
||||||
p.RelatedTopic { color:#800080; margin-left: 10px; font-size:14pt; }
|
|
||||||
|
|
||||||
/*
|
|
||||||
We wish for a tables to have space between it and the preceding element, so that text
|
|
||||||
is not too close to the top of the table. Also, nest the table a bit so that it is clear
|
|
||||||
the table relates to the preceding text.
|
|
||||||
*/
|
|
||||||
table { margin-left: 20px; margin-top: 10px; width: 80%;}
|
|
||||||
td { font-family:times new roman; font-size:14pt; vertical-align: top; }
|
|
||||||
th { font-family:times new roman; font-size:14pt; font-weight:bold; background-color: #EDF3FE; }
|
|
||||||
|
|
||||||
/*
|
|
||||||
Code-like formatting for things such as file system paths and proper names of classes,
|
|
||||||
methods, etc. To apply this to a file path, use this syntax:
|
|
||||||
<CODE CLASS="path">...</CODE>
|
|
||||||
*/
|
|
||||||
code { color: black; font-weight: bold; font-family: courier new, monospace; font-size: 14pt; white-space: nowrap; }
|
|
||||||
code.path { color: #4682B4; font-weight: bold; font-family: courier new, monospace; font-size: 14pt; white-space: nowrap; }
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
||||||
|
|
||||||
<HTML>
|
|
||||||
<HEAD>
|
|
||||||
<META name="generator" content=
|
|
||||||
"HTML Tidy for Java (vers. 2009-12-01), see jtidy.sourceforge.net">
|
|
||||||
<META http-equiv="Content-Language" content="en-us">
|
|
||||||
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
||||||
<META name="GENERATOR" content="Microsoft FrontPage 4.0">
|
|
||||||
<META name="ProgId" content="FrontPage.Editor.Document">
|
|
||||||
|
|
||||||
<TITLE>Skeleton Help File for a Module</TITLE>
|
|
||||||
<LINK rel="stylesheet" type="text/css" href="help/shared/DefaultStyle.css">
|
|
||||||
</HEAD>
|
|
||||||
|
|
||||||
<BODY>
|
|
||||||
<H1><a name="HelpAnchor"></a>Skeleton Help File for a Module</H1>
|
|
||||||
|
|
||||||
<P>This is a simple skeleton help topic. For a better description of what should and should not
|
|
||||||
go in here, see the "sample" Ghidra extension in the Extensions/Ghidra directory, or see your
|
|
||||||
favorite help topic. In general, language modules do not have their own help topics.</P>
|
|
||||||
</BODY>
|
|
||||||
</HTML>
|
|
||||||
@@ -88,7 +88,6 @@ import ghidra.program.model.listing.*;
|
|||||||
import ghidra.program.model.symbol.*;
|
import ghidra.program.model.symbol.*;
|
||||||
import ghidra.program.util.ChangeManager;
|
import ghidra.program.util.ChangeManager;
|
||||||
import ghidra.program.util.DefinedDataIterator;
|
import ghidra.program.util.DefinedDataIterator;
|
||||||
import ghidra.program.util.DefinedStringIterator;
|
|
||||||
import ghidra.program.util.GhidraProgramUtilities;
|
import ghidra.program.util.GhidraProgramUtilities;
|
||||||
import ghidra.program.util.ProgramChangeRecord;
|
import ghidra.program.util.ProgramChangeRecord;
|
||||||
import ghidra.program.util.ProgramLocation;
|
import ghidra.program.util.ProgramLocation;
|
||||||
|
|||||||
@@ -152,10 +152,11 @@ class SymbolPlaceholder implements Symbol{
|
|||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
//removed in Ghidra 12.0 - doubt we need this in 11.4?
|
||||||
public boolean hasMultipleReferences() {
|
//@Override
|
||||||
throw new UnsupportedOperationException();
|
//public boolean hasMultipleReferences() {
|
||||||
}
|
// throw new UnsupportedOperationException();
|
||||||
|
//}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasReferences() {
|
public boolean hasReferences() {
|
||||||
|
|||||||
Reference in New Issue
Block a user