Added Current Dataset Variable
This commit is contained in:
@@ -14,7 +14,8 @@ import seng202.group9.GUI.MainMenuBar;
|
|||||||
*/
|
*/
|
||||||
public class App extends Application
|
public class App extends Application
|
||||||
{
|
{
|
||||||
ArrayList<Dataset> Datasets = new ArrayList<Dataset>();
|
private ArrayList<Dataset> Datasets = new ArrayList<Dataset>();
|
||||||
|
private Dataset currentDataset = null;
|
||||||
|
|
||||||
public static void main( String[] args )
|
public static void main( String[] args )
|
||||||
{
|
{
|
||||||
@@ -36,9 +37,8 @@ public class App extends Application
|
|||||||
primaryStage.setScene(scene);
|
primaryStage.setScene(scene);
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
//testing out dataset
|
//testing out dataset
|
||||||
Dataset dataset1 = null;
|
|
||||||
try {
|
try {
|
||||||
dataset1 = new Dataset("test's", Dataset.getExisting);
|
currentDataset = new Dataset("test's", Dataset.getExisting);
|
||||||
}catch (DataException e){
|
}catch (DataException e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@@ -64,4 +64,8 @@ public class App extends Application
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Dataset getCurrentDataset(){
|
||||||
|
return currentDataset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user