Skip to content

Commit

Permalink
Removed references to feature and db4o
Browse files Browse the repository at this point in the history
  • Loading branch information
bahellma committed Apr 18, 2013
1 parent f1bbf99 commit 37f7228
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 259 deletions.
14 changes: 0 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@
</build>

<repositories>
<repository>
<id>source.db4o</id>
<url>http://source.db4o.com/maven</url>
</repository>
<repository>
<id>source.prefuse</id>
<url>http://www.rio-project.org/maven2</url>
Expand All @@ -152,22 +148,12 @@
<scope>test</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.db4o</groupId>
<artifactId>db4o-full-java5</artifactId>
<version>8.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.prefuse</groupId>
<artifactId>prefuse</artifactId>
<version>2007.10.21</version>
</dependency>

<dependency>
<groupId>de.fhhannover.inform.trust</groupId>
<artifactId>feature</artifactId>
<version>0.0.5</version>
</dependency>
<dependency>
<groupId>de.fhhannover.inform.trust</groupId>
<artifactId>ifmapj</artifactId>
Expand Down

This file was deleted.

100 changes: 0 additions & 100 deletions src/main/java/de/fhhannover/inform/ifmap/util/IfmapUtils.java

This file was deleted.

26 changes: 0 additions & 26 deletions src/main/java/de/fhhannover/inform/ifmap/view/MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,9 @@
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import java.util.ArrayList;
import java.util.List;

import javax.swing.Box;
import javax.swing.DefaultListModel;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
Expand All @@ -84,14 +80,10 @@
import javax.swing.event.ListSelectionListener;

import de.fhhannover.inform.ifmap.communication.Connection;
import de.fhhannover.inform.ifmap.datastructure.Db4oStorageImpl;
import de.fhhannover.inform.ifmap.datastructure.IfmapDataType;
import de.fhhannover.inform.ifmap.util.IfmapUtils;
import de.fhhannover.inform.ifmap.util.ResourceHelper;
import de.fhhannover.inform.ifmap.view.component.MetadataPanel;
import de.fhhannover.inform.ifmap.view.component.NavigationPanel;
import de.fhhannover.inform.ifmap.view.component.ToolbarPanel;
import de.fhhannover.inform.trust.Feature;

@SuppressWarnings("serial")
public class MainFrame extends JFrame {
Expand All @@ -115,7 +107,6 @@ public class MainFrame extends JFrame {
private JMenuItem mntmSubscribe;
private JMenu mnAbout;
private JMenuItem mntmIrongui;
private JMenuItem mntmOpenDboFile;

public MainFrame(ViewController vc) {
menuBar = new JMenuBar();
Expand All @@ -124,23 +115,6 @@ public MainFrame(ViewController vc) {
mnConnection = new JMenu("Connection");
menuBar.add(mnConnection);

mntmOpenDboFile = new JMenuItem("Open db4o file...");
mntmOpenDboFile.setVisible(false);
mnConnection.add(mntmOpenDboFile);
mntmOpenDboFile.addActionListener(new ActionListener() {

@Override
public void actionPerformed(ActionEvent e) {
JFileChooser fc = new JFileChooser();
int returnVal = fc.showOpenDialog(MainFrame.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
String path = fc.getSelectedFile().getAbsolutePath();
ArrayList<IfmapDataType> features = IfmapUtils.dbo2Ifmap(path);
mViewController.addDb4oGraph(features);
}
}
});

mntmManageConnections = new JMenuItem("Manage connections...");
mntmManageConnections.setMnemonic(KeyEvent.VK_M);
mntmManageConnections.setIcon(ResourceHelper
Expand Down
15 changes: 0 additions & 15 deletions src/main/java/de/fhhannover/inform/ifmap/view/ViewController.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;

import javax.swing.DefaultListModel;
import javax.swing.ImageIcon;
Expand Down Expand Up @@ -755,18 +754,4 @@ private void saveConnections() {
}
}
}

public void addDb4oGraph(ArrayList<IfmapDataType> features) {
GraphPanel graph = new GraphPanel();
graph.addNodeSelectedListener(mMainFrame.metadataPanel);
graph.setTable(mMainFrame.metadataPanel.table, null);
mMainFrame.tabbedPane.addTab("db4o", new ImageIcon(
getClass().getClassLoader().getResource("tabConnect.png")),
graph, "db4o");
mMainFrame.tabbedPane.setTabComponentAt(
mMainFrame.tabbedPane.getTabCount() - 1,
new CustomTabComponent("db4o", mMainFrame.tabbedPane));
graph.processNewPollResult(features, null, null);
graph.revalidate();
}
}

0 comments on commit 37f7228

Please sign in to comment.