diff options
| author | njames <njames@us.ibm.com> | 2015-02-20 21:24:49 -0600 |
|---|---|---|
| committer | njames <njames@us.ibm.com> | 2015-02-20 21:24:49 -0600 |
| commit | 679c2de95cccdfb1e286537c59122b926924b6d3 (patch) | |
| tree | 9a832f9a8285dd3dc337e968dfb654f98682da22 | |
| parent | 68a30ab92ea9c927f6462cbd87549443f8523fc7 (diff) | |
| download | serverwiz-679c2de95cccdfb1e286537c59122b926924b6d3.tar.gz serverwiz-679c2de95cccdfb1e286537c59122b926924b6d3.zip | |
full project
| -rw-r--r-- | .classpath | 12 | ||||
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | .project | 17 | ||||
| -rw-r--r-- | .settings/org.eclipse.jdt.core.prefs | 12 | ||||
| -rw-r--r-- | build/.gitignore | 1 | ||||
| -rw-r--r-- | doc/.gitignore | 1 | ||||
| -rw-r--r-- | doc/Serverwiz2 Overview.ppt | bin | 0 -> 1123328 bytes | |||
| -rw-r--r-- | scripts/.gitignore | 1 | ||||
| -rw-r--r-- | src/com/ibm/ServerWizard2/AttributeValidator.java | 41 | ||||
| -rw-r--r-- | xml/.gitignore | 1 |
10 files changed, 89 insertions, 0 deletions
diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..87382d3 --- /dev/null +++ b/.classpath @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry exported="true" kind="lib" path="lib/swt.jar"/> + <classpathentry kind="lib" path="lib/swt_linux64.jar"/> + <classpathentry kind="lib" path="C:/Program Files (x86)/eclipse.luna/eclipse/plugins/org.eclipse.jface_3.10.1.v20140813-1009.jar"/> + <classpathentry kind="lib" path="C:/Program Files (x86)/eclipse.luna/eclipse/plugins/org.eclipse.core.runtime_3.10.0.v20140318-2214.jar"/> + <classpathentry kind="lib" path="C:/Program Files (x86)/eclipse.luna/eclipse/plugins/org.eclipse.core.commands_3.6.100.v20140528-1422.jar"/> + <classpathentry kind="lib" path="C:/Program Files (x86)/eclipse.luna/eclipse/plugins/org.eclipse.equinox.common_3.6.200.v20130402-1505.jar"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2532b0d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/bin/ +/lib/ +/serverwiz2.update diff --git a/.project b/.project new file mode 100644 index 0000000..5f05ecd --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>serverwiz</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..eb1cb4c --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..840e7d3 --- /dev/null +++ b/build/.gitignore @@ -0,0 +1 @@ +/classes/ diff --git a/doc/.gitignore b/doc/.gitignore new file mode 100644 index 0000000..2ae923f --- /dev/null +++ b/doc/.gitignore @@ -0,0 +1 @@ +/images/ diff --git a/doc/Serverwiz2 Overview.ppt b/doc/Serverwiz2 Overview.ppt Binary files differnew file mode 100644 index 0000000..2506c02 --- /dev/null +++ b/doc/Serverwiz2 Overview.ppt diff --git a/scripts/.gitignore b/scripts/.gitignore new file mode 100644 index 0000000..04fe4bc --- /dev/null +++ b/scripts/.gitignore @@ -0,0 +1 @@ +/convertMracSdr.pl diff --git a/src/com/ibm/ServerWizard2/AttributeValidator.java b/src/com/ibm/ServerWizard2/AttributeValidator.java new file mode 100644 index 0000000..0a2ff0e --- /dev/null +++ b/src/com/ibm/ServerWizard2/AttributeValidator.java @@ -0,0 +1,41 @@ +package com.ibm.ServerWizard2; + +import org.eclipse.jface.viewers.ICellEditorValidator; + +public class AttributeValidator implements ICellEditorValidator { + Field f; + public AttributeValidator(Field f) { + this.f=f; + } + + public String isValid(Object arg0) { + String s = (String)arg0; + String rtn=null; + if (f.type.equals("uint8_t")) { + if (!this.isValidByte(s)) { + rtn="Invalid number format for uint8_t"; + } + } else if (f.type.equals("uint32_t") || f.type.equals("uint16_t")) { + if (!this.isValidInt(s)) { + rtn="Invalid number format for uint16_t or uint32_t"; + } + } + return rtn; + } + private boolean isValidByte(String s) { +/* try { + Byte.decode(s); + } catch (Exception e) { + return false; + }*/ + return true; + } + private boolean isValidInt(String s) { + try { + Integer.decode(s); + } catch (Exception e) { + return false; + } + return true; + } +} diff --git a/xml/.gitignore b/xml/.gitignore new file mode 100644 index 0000000..bb49e0f --- /dev/null +++ b/xml/.gitignore @@ -0,0 +1 @@ +/fsp/ |

