Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/MapOfCountries/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>net.clementlevallois</groupId>
<artifactId>mapofcountries</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<packaging>nbm</packaging>

<name>Map Of Countries</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ Development and Distribution License("CDDL") (collectively, the
import java.util.Map;
import org.gephi.graph.api.Edge;
import org.gephi.graph.api.Graph;
import org.gephi.graph.api.GraphController;
import org.gephi.graph.api.GraphModel;
import org.gephi.graph.api.Node;
import org.openide.util.Lookup;

/**
*
Expand All @@ -76,10 +74,8 @@ public Graph read(Graph gr, String country, String subregion, String region, Str

InputStream shapes = ShapeFileReader.class.getResourceAsStream("/resources/coordinates.txt");
InputStream shapesDistricts = ShapeFileReader.class.getResourceAsStream("/resources/Australian states.csv");
GraphController gc = Lookup.getDefault().lookup(GraphController.class);
GraphModel gm = gc.getGraphModel();

gr = gm.getGraph();
// The model of the graph being laid out, the current workspace's is not the one of a graph in a test or a script
GraphModel gm = gr.getModel();

Node node;
Edge edge;
Expand Down
Loading