summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornjames <nkskjames@gmail.com>2016-09-02 13:30:46 -0500
committernjames <nkskjames@gmail.com>2016-09-02 13:30:46 -0500
commit5d05a5f56d9ecdf1aa93278e0f274a7ac44e1bc8 (patch)
tree3d388258aa501c4d7a556bdaa767b9bfb69ac473
parent1a77a419214e07981e7955b63890703eb2406966 (diff)
downloadserverwiz-5d05a5f56d9ecdf1aa93278e0f274a7ac44e1bc8.tar.gz
serverwiz-5d05a5f56d9ecdf1aa93278e0f274a7ac44e1bc8.zip
Move the combining of attributes and global settings to model
Signed-off-by: Norman James <nkskjames@gmail.com>
-rw-r--r--src/com/ibm/ServerWizard2/controller/TargetWizardController.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/com/ibm/ServerWizard2/controller/TargetWizardController.java b/src/com/ibm/ServerWizard2/controller/TargetWizardController.java
index 2302412..b3cd13a 100644
--- a/src/com/ibm/ServerWizard2/controller/TargetWizardController.java
+++ b/src/com/ibm/ServerWizard2/controller/TargetWizardController.java
@@ -1,11 +1,15 @@
package com.ibm.ServerWizard2.controller;
import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StringWriter;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
+import java.util.Properties;
import java.util.Vector;
import org.eclipse.jface.dialogs.MessageDialog;
@@ -27,6 +31,7 @@ public class TargetWizardController {
private String PROCESSING_SCRIPT = "scripts/gen_html.pl";
public TargetWizardController() {
+
}
public void setModelCreationMode() {
@@ -38,8 +43,6 @@ public class TargetWizardController {
public void init() {
try {
- //xmlLib.init();
- //xmlLib.loadModel(model);
model.loadLibrary("xml");
this.initModel();
} catch (Exception e) {
@@ -70,7 +73,10 @@ public class TargetWizardController {
public void deleteTarget(Target target) {
model.deleteTarget(target);
}
-
+ public Vector<Field> getAttributesAndGlobals(Target targetInstance, String path) {
+ return model.getAttributesAndGlobals(targetInstance, path, !this.modelCreationMode);
+ }
+
public void addTargetInstance(Target targetModel, Target parentTarget,
TreeItem parentItem, String nameOverride) {
OpenPOWER on IntegriCloud