Merge remote-tracking branch 'origin/ryanmkurtz_GT-2702_listner' into Ghidra_9.0.2

This commit is contained in:
ghidravore 2019-04-02 18:07:12 -04:00
commit 2fcf698408
9 changed files with 17 additions and 17 deletions

View File

@ -93,7 +93,7 @@ public class ArchivePlugin extends Plugin implements FrontEndOnly, ProjectListen
private volatile boolean isArchiving;
private volatile boolean isRestoring;
private TaskListener archivingListener;
private TaskListener restoringListner;
private TaskListener restoringListener;
//////////////////////////////////////////////////////////////////
@ -282,7 +282,7 @@ public class ArchivePlugin extends Plugin implements FrontEndOnly, ProjectListen
isRestoring = true;
restoringListner = new TaskListener() {
restoringListener = new TaskListener() {
@Override
public void taskCompleted(Task task) {
isRestoring = false;
@ -295,7 +295,7 @@ public class ArchivePlugin extends Plugin implements FrontEndOnly, ProjectListen
};
Task task = new RestoreTask(lastRestoreLocator, archiveJar, this);
task.addTaskListener(restoringListner);
task.addTaskListener(restoringListener);
new TaskLauncher(task, tool.getToolFrame());
}

View File

@ -623,7 +623,7 @@ public class OptionsTest extends AbstractGenericTest {
@Override
public int hashCode() {
return 1;// set so that this listener gets called after the storingOptionsListnere
return 1;// set so that this listener gets called after the storingOptionsListener
}
}

View File

@ -63,7 +63,7 @@ public class ObjectChooserDialog<T> extends DialogComponentProvider {
table.addSelectionListener(t -> objectSelected(t));
table.setItemPickListner(t -> objectPicked(t));
table.setItemPickListener(t -> objectPicked(t));
return table;
}

View File

@ -133,7 +133,7 @@ public class GTableWidget<T> extends JPanel {
listener.itemPicked(gFilterTable.getSelectedRowObject());
}
public void setItemPickListner(TableItemPickedListener<T> listener) {
public void setItemPickListener(TableItemPickedListener<T> listener) {
this.listener = listener;
}

View File

@ -867,7 +867,7 @@ public class GTree extends JPanel implements BusyListener {
tree.getModel().addTreeModelListener(listener);
}
public void removeGTModelListner(TreeModelListener listener) {
public void removeGTModelListener(TreeModelListener listener) {
tree.getModel().removeTreeModelListener(listener);
}

View File

@ -254,7 +254,7 @@ public interface FileSystem {
/**
* Adds the given listener to be notified of file system changes.
* @param listener the listner to be added.
* @param listener the listener to be added.
*/
public void addFileSystemListener(FileSystemListener listener);

View File

@ -15,7 +15,7 @@
*/
package ghidra.graph.viewer.edge;
public interface PathHighlightListner {
public interface PathHighlightListener {
/**
* Called when the a path is highlighted.

View File

@ -99,7 +99,7 @@ public class VisualGraphPathHighlighter<V extends VisualVertex, E extends Visual
private CompletableFuture<ChkDominanceAlgorithm<V, E>> postDominanceFuture;
private CompletableFuture<Circuits> circuitFuture;
private PathHighlightListner listener = isHover -> {
private PathHighlightListener listener = isHover -> {
// stub
};
@ -108,7 +108,7 @@ public class VisualGraphPathHighlighter<V extends VisualVertex, E extends Visual
private SwingUpdateManager focusedVertexUpdater =
new SwingUpdateManager(() -> doUpdateFocusedVertex());
public VisualGraphPathHighlighter(VisualGraph<V, E> graph, PathHighlightListner listener) {
public VisualGraphPathHighlighter(VisualGraph<V, E> graph, PathHighlightListener listener) {
this.graph = graph;
if (listener != null) {
this.listener = listener;

View File

@ -59,12 +59,12 @@ public class GProgressBar extends JPanel {
private Timer updateTimer;
private EmptyBorderButton cancelButton;
private CancelledListener cancelledListner;
private CancelledListener cancelledListener;
public GProgressBar(CancelledListener cancelledListner, boolean includeTextField,
public GProgressBar(CancelledListener cancelledListener, boolean includeTextField,
boolean includeCancelButton, boolean includeAnimatedIcon, float fontSize) {
super(new BorderLayout(5, 1));
this.cancelledListner = cancelledListner;
this.cancelledListener = cancelledListener;
this.fontSize = fontSize;
buildProgressPanel(includeTextField, includeCancelButton, includeAnimatedIcon);
@ -199,13 +199,13 @@ public class GProgressBar extends JPanel {
}
public void cancel() {
if (cancelledListner != null) {
cancelledListner.cancelled();
if (cancelledListener != null) {
cancelledListener.cancelled();
}
}
public void setCancelledListener(CancelledListener listener) {
this.cancelledListner = listener;
this.cancelledListener = listener;
}
private void buildProgressPanel(boolean includeTextField, boolean includeCancelButton,