Skip to content
Snippets Groups Projects
Commit d9ab7efa authored by Anian Bühler's avatar Anian Bühler
Browse files

updated contextMenu

parent a6b05cc0
No related branches found
No related tags found
1 merge request!1Dev preferences
...@@ -303,7 +303,7 @@ public class ContextMenu extends PopupMenu implements ActionListener { ...@@ -303,7 +303,7 @@ public class ContextMenu extends PopupMenu implements ActionListener {
} }
//copy example-image to tmp files //copy example-image to tmp files
try { /* try {
InputStream input = getClass().getResourceAsStream(exampleResource); InputStream input = getClass().getResourceAsStream(exampleResource);
if(input != null) { if(input != null) {
exampleFile = new File(tempPath +"/"+ blockGenusName+"-beispiel.png"); exampleFile = new File(tempPath +"/"+ blockGenusName+"-beispiel.png");
...@@ -321,14 +321,14 @@ public class ContextMenu extends PopupMenu implements ActionListener { ...@@ -321,14 +321,14 @@ public class ContextMenu extends PopupMenu implements ActionListener {
} }
} catch (IOException ex) { } catch (IOException ex) {
ex.printStackTrace(); ex.printStackTrace();
} }*/
//copy optional second example-image to tmp files //copy optional second example-image to tmp files
//TODO: add number to all exampleImages -> starting with 1 //TODO: add number to all exampleImages -> starting with 1
//TODO: or use just one example image //TODO: or use just one example image
try { try {
boolean allFilesRead = false; boolean allFilesRead = false;
int exampleImageCounter = 2; int exampleImageCounter = 1;
while(!allFilesRead) { while(!allFilesRead) {
InputStream input = getClass().getResourceAsStream(example2Resource + exampleImageCounter + exampleFileType); InputStream input = getClass().getResourceAsStream(example2Resource + exampleImageCounter + exampleFileType);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment