Skip to content

Commit

Permalink
'#Removes nominatim panel installation as it will be improved and
Browse files Browse the repository at this point in the history
finished in a new Branch (with the new FilterManager interface).
  • Loading branch information
patrickdalla committed Sep 21, 2023
1 parent 14c024a commit 6dcec30
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 15 additions & 1 deletion iped-app/src/main/java/iped/app/ui/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
import iped.engine.search.MultiSearchResult;
import iped.engine.task.ImageThumbTask;
import iped.engine.util.Util;
import iped.geo.nominatim.ui.NominatimPanel;
import iped.parsers.standard.StandardParser;
import iped.search.IIPEDSearcher;
import iped.search.IMultiSearchResult;
Expand Down Expand Up @@ -271,6 +272,10 @@ public class App extends JFrame implements WindowListener, IMultiSearchResultPro

private Set<String> highlightTerms = new HashSet<>();

private NominatimPanel nominatimPanel;

private DefaultSingleCDockable nominatimTabDock;

private App() {
}

Expand Down Expand Up @@ -626,6 +631,7 @@ public void componentResized(ComponentEvent e) {

metadataPanel = new MetadataPanel();
categoriesPanel = new JScrollPane(categoryTree);
nominatimPanel = new NominatimPanel(this);
bookmarksPanel = new JScrollPane(bookmarksTree);

recursiveTreeList = new JCheckBox(Messages.getString("App.RecursiveListing")); //$NON-NLS-1$
Expand Down Expand Up @@ -858,6 +864,9 @@ public void updateUI(boolean refresh) {
private void createAllDockables() {
categoriesTabDock = createDockable("categoriestab", Messages.getString("CategoryTreeModel.RootName"), //$NON-NLS-1$ //$NON-NLS-2$
categoriesPanel);
nominatimTabDock = createDockable("nominatimtab", "nominatimPanel", //$NON-NLS-1$ //$NON-NLS-2$
nominatimPanel);

metadataTabDock = createDockable("metadatatab", Messages.getString("App.Metadata"), metadataPanel); //$NON-NLS-1$ //$NON-NLS-2$
if (evidencePanel != null) {
evidenceTabDock = createDockable("evidencetab", Messages.getString("TreeViewModel.RootName"), //$NON-NLS-1$ //$NON-NLS-2$
Expand Down Expand Up @@ -970,6 +979,7 @@ public void changed(CDockableLocationEvent event) {
referencedByScroll);

dockingControl.addDockable(categoriesTabDock);
dockingControl.addDockable(nominatimTabDock);
dockingControl.addDockable(metadataTabDock);
if (evidenceTabDock != null) {
dockingControl.addDockable(evidenceTabDock);
Expand Down Expand Up @@ -1134,7 +1144,7 @@ private void removeAllDockables() {
List<DefaultSingleCDockable> docks = new ArrayList<>();
docks.addAll(Arrays.asList(hitsDock, subitemDock, duplicateDock, parentDock, tableTabDock, galleryTabDock,
bookmarksTabDock, evidenceTabDock, metadataTabDock, categoriesTabDock, graphDock, referencesDock,
referencedByDock));
referencedByDock, nominatimTabDock));
docks.addAll(viewerDocks);
docks.addAll(rsTabDock);
rsTabDock.clear();
Expand Down Expand Up @@ -1318,6 +1328,9 @@ public void adjustLayout(boolean isReset) {
categoriesTabDock.setLocation(CLocation.base().normalWest(0.20).north(0.5));
categoriesTabDock.setVisible(true);

nominatimTabDock.setLocationsAside(categoriesTabDock);
nominatimTabDock.setVisible(true);

if (evidenceTabDock != null) {
evidenceTabDock.setLocationsAside(categoriesTabDock);
evidenceTabDock.setVisible(true);
Expand All @@ -1334,6 +1347,7 @@ public void adjustLayout(boolean isReset) {

selectDockableTab(viewerDocks.get(viewerDocks.size() - 1));
selectDockableTab(categoriesTabDock);
selectDockableTab(nominatimTabDock);
selectDockableTab(bookmarksTabDock);
selectDockableTab(tableTabDock);

Expand Down
2 changes: 0 additions & 2 deletions iped-app/src/main/java/iped/app/ui/UICaseDataLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import iped.engine.data.IPEDSource;
import iped.engine.task.ParsingTask;
import iped.engine.task.SignatureTask;
import iped.geo.nominatim.ui.NominatimPanel;
import iped.parsers.standard.StandardParser;

public class UICaseDataLoader extends SwingWorker<Void, Integer> {
Expand Down Expand Up @@ -175,7 +174,6 @@ public void run() {
public void done() {
try {
CategoryTreeModel.install();
NominatimPanel.install(App.get());
App.get().filterManager.loadFilters();
BookmarksController.get().updateUIandHistory();

Expand Down

0 comments on commit 6dcec30

Please sign in to comment.