mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
e9e4ee48ce
6 changed files with 21 additions and 42 deletions
|
@ -742,7 +742,7 @@ public class DefaultProjectData implements ProjectData {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void refresh(boolean force) throws IOException {
|
||||
public void refresh(boolean force) {
|
||||
try {
|
||||
rootFolderData.refresh(true, true, projectDisposalMonitor);
|
||||
}
|
||||
|
|
|
@ -17,14 +17,12 @@ package ghidra.framework.main.projectdata.actions;
|
|||
|
||||
import java.awt.Component;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
import docking.action.*;
|
||||
import ghidra.framework.client.ClientUtil;
|
||||
import ghidra.framework.main.datatable.ProjectDataContext;
|
||||
import ghidra.framework.main.datatable.FrontendProjectTreeAction;
|
||||
import ghidra.framework.main.datatable.ProjectDataContext;
|
||||
import ghidra.framework.model.ProjectData;
|
||||
import ghidra.util.HelpLocation;
|
||||
import ghidra.util.task.*;
|
||||
|
@ -53,13 +51,7 @@ public class ProjectDataRefreshAction extends FrontendProjectTreeAction {
|
|||
TaskLauncher.launch(new Task("Refresh folders and files", false, false, true) {
|
||||
@Override
|
||||
public void run(TaskMonitor monitor) {
|
||||
try {
|
||||
projectData.refresh(false);
|
||||
}
|
||||
catch (IOException e) {
|
||||
ClientUtil.handleException(projectData.getRepository(), e,
|
||||
"Refresh Project Data", false, comp);
|
||||
}
|
||||
projectData.refresh(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -143,9 +143,8 @@ public interface ProjectData {
|
|||
* Sync the Domain folder/file structure with the underlying file structure.
|
||||
* @param force if true all folders will be be visited and refreshed, if false
|
||||
* only those folders previously visited will be refreshed.
|
||||
* @throws IOException if an IO error occurs
|
||||
*/
|
||||
public void refresh(boolean force) throws IOException;
|
||||
public void refresh(boolean force);
|
||||
|
||||
/**
|
||||
* Returns User object associated with remote repository or null if a remote repository
|
||||
|
|
|
@ -119,7 +119,7 @@ public class TestDummyProjectData implements ProjectData {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void refresh(boolean force) throws IOException {
|
||||
public void refresh(boolean force) {
|
||||
// stub
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue