diff --git a/SAS/OTB/GUI/Makefile.am b/SAS/OTB/GUI/Makefile.am deleted file mode 100644 index 161f7455d022a4bf60641cbe45447f4764e96d94..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -SUBDIRS=src test - -include $(top_srcdir)/Makefile.common diff --git a/SAS/OTB/GUI/bootstrap b/SAS/OTB/GUI/bootstrap deleted file mode 100755 index 06f18cde1dbfd6912ef7d927c4d35d25c7137a62..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/bootstrap +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -../../../autoconf_share/bootstrap ../../../autoconf_share diff --git a/SAS/OTB/GUI/build.xml b/SAS/OTB/GUI/build.xml deleted file mode 100644 index 5b3367f81a069aa0154eecaefc7bb693970735f6..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/build.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- You may freely edit this file. See commented blocks below for --> -<!-- some examples of how to customize the build. --> -<!-- (If you delete it and reopen the project it will be recreated.) --> -<project name="GUI" default="default" basedir="."> - <description>Builds, tests, and runs the project GUI.</description> - <import file="nbproject/build-impl.xml"/> - <!-- - - There exist several targets which are by default empty and which can be - used for execution of your tasks. These targets are usually executed - before and after some main targets. They are: - - -pre-init: called before initialization of project properties - -post-init: called after initialization of project properties - -pre-compile: called before javac compilation - -post-compile: called after javac compilation - -pre-compile-single: called before javac compilation of single file - -post-compile-single: called after javac compilation of single file - -pre-compile-test: called before javac compilation of JUnit tests - -post-compile-test: called after javac compilation of JUnit tests - -pre-compile-test-single: called before javac compilation of single JUnit test - -post-compile-test-single: called after javac compilation of single JUunit test - -pre-jar: called before JAR building - -post-jar: called after JAR building - -post-clean: called after cleaning build products - - (Targets beginning with '-' are not intended to be called on their own.) - - Example of inserting an obfuscator after compilation could look like this: - - <target name="-post-compile"> - <obfuscate> - <fileset dir="${build.classes.dir}"/> - </obfuscate> - </target> - - For list of available properties check the imported - nbproject/build-impl.xml file. - - - Another way to customize the build is by overriding existing main targets. - The targets of interest are: - - -init-macrodef-javac: defines macro for javac compilation - -init-macrodef-junit: defines macro for junit execution - -init-macrodef-debug: defines macro for class debugging - -init-macrodef-java: defines macro for class execution - -do-jar-with-manifest: JAR building (if you are using a manifest) - -do-jar-without-manifest: JAR building (if you are not using a manifest) - run: execution of project - -javadoc-build: Javadoc generation - test-report: JUnit report generation - - An example of overriding the target for project execution could look like this: - - <target name="run" depends="GUI-impl.jar"> - <exec dir="bin" executable="launcher.exe"> - <arg file="${dist.jar}"/> - </exec> - </target> - - Notice that the overridden target depends on the jar target and not only on - the compile target as the regular run target does. Again, for a list of available - properties which you can use, check the target you are overriding in the - nbproject/build-impl.xml file. - - --> -</project> diff --git a/SAS/OTB/GUI/configure.in b/SAS/OTB/GUI/configure.in deleted file mode 100644 index 14990816f7b5b9a3d25ae3bc4551005178748bf9..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/configure.in +++ /dev/null @@ -1,64 +0,0 @@ -dnl -dnl Process this file with autoconf to produce a configure script. -dnl -AC_INIT -dnl AC_CONFIG_AUX_DIR(config) -dnl AM_CONFIG_HEADER(config/config.h) -AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(GUI, 1.0, no-define) - -dnl Initialize for LOFAR (may set compilers) -lofar_INIT - -dnl Checks for programs. -AC_PROG_AWK -AC_PROG_YACC -AC_PROG_CC -AC_PROG_CXX -AM_PROG_LEX -AC_PROG_INSTALL -AC_PROG_LN_S -AC_DISABLE_SHARED -AC_PROG_LIBTOOL - -dnl Checks for libraries. - -dnl dnl Replace `main' with a function in -lfl: -dnl AC_CHECK_LIB(fl, main) -dnl dnl Replace `main' with a function in -lcosev_r: -dnl AC_CHECK_LIB(cosev_r, main) -dnl dnl Replace `main' with a function in -lcosnm_r: -dnl AC_CHECK_LIB(cosnm_r, main) -dnl dnl Replace `main' with a function in -lorb_r: -dnl AC_CHECK_LIB(orb_r, main) -dnl dnl Replace `main' with a function in -lpthread: -dnl AC_CHECK_LIB(pthread, main) -dnl dnl Replace `main' with a function in -lvport_r: -dnl AC_CHECK_LIB(vport_r, main) - -dnl Checks for header files. -AC_HEADER_STDC -AC_CHECK_HEADERS(unistd.h) - -dnl Checks for typedefs, structures, and compiler characteristics. -AC_C_CONST -AC_TYPE_SIZE_T - -dnl Checks for library functions. -AC_FUNC_VPRINTF - -dnl -dnl Check for LOFAR specific things -dnl -lofar_GENERAL -dnl lofar_BLITZ -dnl lofar_MPI -dnl lofar_PACKAGE(LCS/Common) -dnl -dnl Output Makefiles -dnl -AC_OUTPUT( -src/Makefile -test/Makefile -Makefile -) diff --git a/SAS/OTB/GUI/manifest.mf b/SAS/OTB/GUI/manifest.mf deleted file mode 100644 index 328e8e5bc3b7f1f7bad2bc0751a933e00c801983..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/SAS/OTB/GUI/nbproject/build-impl.xml b/SAS/OTB/GUI/nbproject/build-impl.xml deleted file mode 100644 index 3d1aaef7d65b7951c54065dbc6af5759d0d18366..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/nbproject/build-impl.xml +++ /dev/null @@ -1,490 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -*** GENERATED FROM project.xml - DO NOT EDIT *** -*** EDIT ../build.xml INSTEAD *** - -For the purpose of easier reading the script -is divided into following sections: - - - initialization - - compilation - - jar - - execution - - debugging - - javadoc - - junit compilation - - junit execution - - junit debugging - - applet - - cleanup - ---> -<project name="GUI-impl" default="default" basedir=".." xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1"> - <target name="default" depends="test,jar,javadoc" description="Build and test whole project."/> - <!-- - ====================== - INITIALIZATION SECTION - ====================== - --> - <target name="-pre-init"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="-init-private" depends="-pre-init"> - <property file="nbproject/private/private.properties"/> - </target> - <target name="-init-user" depends="-pre-init,-init-private"> - <property file="${user.properties.file}"/> - <!-- The two properties below are usually overridden --> - <!-- by the active platform. Just a fallback. --> - <property name="default.javac.source" value="1.4"/> - <property name="default.javac.target" value="1.4"/> - </target> - <target name="-init-project" depends="-pre-init,-init-private,-init-user"> - <property file="nbproject/project.properties"/> - </target> - <target name="-do-init" depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property"> - <available file="${manifest.file}" property="manifest.available"/> - <condition property="manifest.available+main.class"> - <and> - <isset property="manifest.available"/> - <isset property="main.class"/> - <not> - <equals arg1="${main.class}" arg2="" trim="true"/> - </not> - </and> - </condition> - <condition property="have.tests"> - <or/> - </condition> - <condition property="netbeans.home+have.tests"> - <and> - <isset property="netbeans.home"/> - <isset property="have.tests"/> - </and> - </condition> - <condition property="no.javadoc.preview"> - <isfalse value="${javadoc.preview}"/> - </condition> - <property name="run.jvmargs" value=""/> - <property name="javac.compilerargs" value=""/> - <property name="work.dir" value="${basedir}"/> - <condition property="no.deps"> - <and> - <istrue value="${no.dependencies}"/> - </and> - </condition> - </target> - <target name="-post-init"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init"> - <fail unless="src.classes.dir">Must set src.classes.dir</fail> - <fail unless="src.src.dir">Must set src.src.dir</fail> - <fail unless="src.dir">Must set src.dir</fail> - <fail unless="build.dir">Must set build.dir</fail> - <fail unless="dist.dir">Must set dist.dir</fail> - <fail unless="build.classes.dir">Must set build.classes.dir</fail> - <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> - <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> - <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> - <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> - <fail unless="dist.jar">Must set dist.jar</fail> - </target> - <target name="-init-macrodef-property"> - <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> - <attribute name="name"/> - <attribute name="value"/> - <sequential> - <property name="@{name}" value="${@{value}}"/> - </sequential> - </macrodef> - </target> - <target name="-init-macrodef-javac"> - <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/2"> - <attribute name="srcdir" default="${src.classes.dir}:${src.src.dir}:${src.dir}"/> - <attribute name="destdir" default="${build.classes.dir}"/> - <attribute name="classpath" default="${javac.classpath}"/> - <attribute name="debug" default="${javac.debug}"/> - <element name="customize" optional="true"/> - <sequential> - <javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false"> - <classpath> - <path path="@{classpath}"/> - </classpath> - <compilerarg line="${javac.compilerargs}"/> - <customize/> - </javac> - </sequential> - </macrodef> - </target> - <target name="-init-macrodef-junit"> - <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/2"> - <attribute name="includes" default="**/*Test.java"/> - <sequential> - <junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed"> - <batchtest todir="${build.test.results.dir}"/> - <classpath> - <path path="${run.test.classpath}"/> - </classpath> - <syspropertyset> - <propertyref prefix="test-sys-prop."/> - <mapper type="glob" from="test-sys-prop.*" to="*"/> - </syspropertyset> - <formatter type="brief" usefile="false"/> - </junit> - </sequential> - </macrodef> - </target> - <target name="-init-macrodef-nbjpda"> - <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> - <attribute name="name" default="${main.class}"/> - <attribute name="classpath" default="${debug.classpath}"/> - <attribute name="stopclassname" default=""/> - <sequential> - <nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}"> - <classpath> - <path path="@{classpath}"/> - </classpath> - </nbjpdastart> - </sequential> - </macrodef> - <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> - <attribute name="dir" default="${build.classes.dir}"/> - <sequential> - <nbjpdareload> - <fileset includes="${fix.includes}*.class" dir="@{dir}"/> - </nbjpdareload> - </sequential> - </macrodef> - </target> - <target name="-init-macrodef-debug"> - <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/2"> - <attribute name="classname" default="${main.class}"/> - <attribute name="classpath" default="${debug.classpath}"/> - <element name="customize" optional="true"/> - <sequential> - <java fork="true" classname="@{classname}" dir="${work.dir}"> - <jvmarg value="-Xdebug"/> - <jvmarg value="-Xnoagent"/> - <jvmarg value="-Djava.compiler=none"/> - <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/> - <jvmarg line="${run.jvmargs}"/> - <classpath> - <path path="@{classpath}"/> - </classpath> - <syspropertyset> - <propertyref prefix="run-sys-prop."/> - <mapper type="glob" from="run-sys-prop.*" to="*"/> - </syspropertyset> - <customize/> - </java> - </sequential> - </macrodef> - </target> - <target name="-init-macrodef-java"> - <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> - <attribute name="classname" default="${main.class}"/> - <element name="customize" optional="true"/> - <sequential> - <java fork="true" classname="@{classname}" dir="${work.dir}"> - <jvmarg line="${run.jvmargs}"/> - <classpath> - <path path="${run.classpath}"/> - </classpath> - <syspropertyset> - <propertyref prefix="run-sys-prop."/> - <mapper type="glob" from="run-sys-prop.*" to="*"/> - </syspropertyset> - <customize/> - </java> - </sequential> - </macrodef> - </target> - <target name="-init-presetdef-jar"> - <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> - <jar jarfile="${dist.jar}" compress="${jar.compress}"> - <j2seproject1:fileset dir="${build.classes.dir}"/> - </jar> - </presetdef> - </target> - <target name="init" depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar"/> - <!-- - =================== - COMPILATION SECTION - =================== - --> - <target name="deps-jar" depends="init" unless="no.deps"/> - <target name="-pre-pre-compile" depends="init,deps-jar"> - <mkdir dir="${build.classes.dir}"/> - </target> - <target name="-pre-compile"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile"> - <j2seproject2:javac/> - <copy todir="${build.classes.dir}"> - <fileset dir="${src.classes.dir}" excludes="${build.classes.excludes}"/> - <fileset dir="${src.src.dir}" excludes="${build.classes.excludes}"/> - <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/> - </copy> - </target> - <target name="-post-compile"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/> - <target name="-pre-compile-single"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile"> - <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> - <j2seproject2:javac> - <customize> - <patternset includes="${javac.includes}"/> - </customize> - </j2seproject2:javac> - </target> - <target name="-post-compile-single"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/> - <!-- - ==================== - JAR BUILDING SECTION - ==================== - --> - <target name="-pre-pre-jar" depends="init"> - <dirname property="dist.jar.dir" file="${dist.jar}"/> - <mkdir dir="${dist.jar.dir}"/> - </target> - <target name="-pre-jar"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available"> - <j2seproject1:jar/> - </target> - <target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class"> - <j2seproject1:jar manifest="${manifest.file}"/> - </target> - <target name="-do-jar-with-mainclass" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class"> - <j2seproject1:jar manifest="${manifest.file}"> - <j2seproject1:manifest> - <j2seproject1:attribute name="Main-Class" value="${main.class}"/> - </j2seproject1:manifest> - </j2seproject1:jar> - </target> - <target name="-post-jar"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="jar" depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-post-jar" description="Build JAR."/> - <!-- - ================= - EXECUTION SECTION - ================= - --> - <target name="run" depends="init,compile" description="Run a main class."> - <j2seproject1:java> - <customize> - <arg line="${application.args}"/> - </customize> - </j2seproject1:java> - </target> - <target name="run-single" depends="init,compile-single"> - <fail unless="run.class">Must select one file in the IDE or set run.class</fail> - <j2seproject1:java classname="${run.class}"/> - </target> - <!-- - ================= - DEBUGGING SECTION - ================= - --> - <target name="-debug-start-debugger" if="netbeans.home" depends="init"> - <j2seproject1:nbjpdastart name="${debug.class}"/> - </target> - <target name="-debug-start-debuggee" depends="init,compile"> - <j2seproject2:debug> - <customize> - <arg line="${application.args}"/> - </customize> - </j2seproject2:debug> - </target> - <target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/> - <target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init"> - <j2seproject1:nbjpdastart stopclassname="${main.class}"/> - </target> - <target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/> - <target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single"> - <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> - <j2seproject2:debug classname="${debug.class}"/> - </target> - <target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/> - <target name="-pre-debug-fix" depends="init"> - <fail unless="fix.includes">Must set fix.includes</fail> - <property name="javac.includes" value="${fix.includes}.java"/> - </target> - <target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single"> - <j2seproject1:nbjpdareload/> - </target> - <target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/> - <!-- - =============== - JAVADOC SECTION - =============== - --> - <target name="-javadoc-build" depends="init"> - <mkdir dir="${dist.javadoc.dir}"/> - <javadoc destdir="${dist.javadoc.dir}" source="${javac.source}" notree="${javadoc.notree}" use="${javadoc.use}" nonavbar="${javadoc.nonavbar}" noindex="${javadoc.noindex}" splitindex="${javadoc.splitindex}" author="${javadoc.author}" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}" private="${javadoc.private}" additionalparam="${javadoc.additionalparam}" failonerror="true"> - <classpath> - <path path="${javac.classpath}"/> - </classpath> - <sourcepath> - <pathelement location="${src.classes.dir}"/> - <pathelement location="${src.src.dir}"/> - <pathelement location="${src.dir}"/> - </sourcepath> - <fileset dir="${src.classes.dir}"/> - <fileset dir="${src.src.dir}"/> - <fileset dir="${src.dir}"/> - </javadoc> - </target> - <target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build"> - <nbbrowse file="${dist.javadoc.dir}/index.html"/> - </target> - <target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/> - <!-- - ========================= - JUNIT COMPILATION SECTION - ========================= - --> - <target name="-pre-pre-compile-test" if="have.tests" depends="init,compile"> - <mkdir dir="${build.test.classes.dir}"/> - </target> - <target name="-pre-compile-test"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test"> - <j2seproject2:javac srcdir="" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/> - <copy todir="${build.test.classes.dir}"/> - </target> - <target name="-post-compile-test"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/> - <target name="-pre-compile-test-single"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single"> - <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> - <j2seproject2:javac srcdir="" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"> - <customize> - <patternset includes="${javac.includes}"/> - </customize> - </j2seproject2:javac> - </target> - <target name="-post-compile-test-single"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/> - <!-- - ======================= - JUNIT EXECUTION SECTION - ======================= - --> - <target name="-pre-test-run" if="have.tests" depends="init"> - <mkdir dir="${build.test.results.dir}"/> - </target> - <target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run"> - <j2seproject2:junit/> - </target> - <target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run"> - <fail if="tests.failed">Some tests failed; see details above.</fail> - </target> - <target name="test-report" if="have.tests" depends="init"/> - <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/> - <target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/> - <target name="-pre-test-run-single" if="have.tests" depends="init"> - <mkdir dir="${build.test.results.dir}"/> - </target> - <target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single"> - <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> - <j2seproject2:junit includes="${test.includes}"/> - </target> - <target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single"> - <fail if="tests.failed">Some tests failed; see details above.</fail> - </target> - <target name="test-single" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test."/> - <!-- - ======================= - JUNIT DEBUGGING SECTION - ======================= - --> - <target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test"> - <fail unless="test.class">Must select one file in the IDE or set test.class</fail> - <j2seproject2:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}"> - <customize> - <arg line="${test.class}"/> - </customize> - </j2seproject2:debug> - </target> - <target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test"> - <j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/> - </target> - <target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/> - <target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single"> - <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> - </target> - <target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/> - <!-- - ========================= - APPLET EXECUTION SECTION - ========================= - --> - <target name="run-applet" depends="init,compile-single"> - <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> - <j2seproject1:java classname="sun.applet.AppletViewer"> - <customize> - <arg value="${applet.url}"/> - </customize> - </j2seproject1:java> - </target> - <!-- - ========================= - APPLET DEBUGGING SECTION - ========================= - --> - <target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single"> - <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> - <j2seproject2:debug classname="sun.applet.AppletViewer"> - <customize> - <arg value="${applet.url}"/> - </customize> - </j2seproject2:debug> - </target> - <target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/> - <!-- - =============== - CLEANUP SECTION - =============== - --> - <target name="deps-clean" depends="init" unless="no.deps"/> - <target name="-do-clean" depends="init"> - <delete dir="${build.dir}"/> - <delete dir="${dist.dir}"/> - </target> - <target name="-post-clean"> - <!-- Empty placeholder for easier customization. --> - <!-- You can override this target in the ../build.xml file. --> - </target> - <target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/> -</project> diff --git a/SAS/OTB/GUI/nbproject/genfiles.properties b/SAS/OTB/GUI/nbproject/genfiles.properties deleted file mode 100644 index 043c3983678fcbac7f18cc2274a07a8ab977fef8..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -build.xml.data.CRC32=813fad3b -build.xml.script.CRC32=edd0f162 -build.xml.stylesheet.CRC32=e2435cb5 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=813fad3b -nbproject/build-impl.xml.script.CRC32=fa8a9cf1 -nbproject/build-impl.xml.stylesheet.CRC32=3b89b5a6 diff --git a/SAS/OTB/GUI/nbproject/project.properties b/SAS/OTB/GUI/nbproject/project.properties deleted file mode 100644 index a6032c75c26729cca840d4062a3408a256880ac9..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/nbproject/project.properties +++ /dev/null @@ -1,60 +0,0 @@ -application.args= -build.classes.dir=${build.dir}/classes -build.classes.excludes=**/*.java,**/*.form -# This directory is removed when the project is cleaned: -build.dir=build -# Only compile against the classpath explicitly listed here: -build.sysclasspath=ignore -build.test.classes.dir=${build.dir}/test/classes -build.test.results.dir=${build.dir}/test/results -debug.classpath=\ - ${run.classpath} -debug.test.classpath=\ - ${run.test.classpath} -# This directory is removed when the project is cleaned: -dist.dir=dist -dist.jar=${dist.dir}/GUI.jar -dist.javadoc.dir=${dist.dir}/javadoc -file.reference.build-classes=../jOTDB/build/classes -file.reference.GUI-src=src -file.reference.jOTDB-src=../jOTDB/src -file.reference.src-jOTDB=../jOTDB/src/jOTDB -jar.compress=false -javac.classpath=\ - ${libs.absolutelayout.classpath} -# Space-separated list of extra javac options -javac.compilerargs= -javac.deprecation=false -javac.source=${default.javac.source} -javac.target=${default.javac.target} -javac.test.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir}:\ - ${libs.junit.classpath} -javadoc.additionalparam= -javadoc.author=false -javadoc.encoding= -javadoc.noindex=false -javadoc.nonavbar=false -javadoc.notree=false -javadoc.private=false -javadoc.splitindex=true -javadoc.use=true -javadoc.version=false -javadoc.windowtitle= -main.class=gui.Main -manifest.file=manifest.mf -platform.active=default_platform -run.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir} -# Space-separated list of JVM arguments used when running the project -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value -# or test-sys-prop.name=value to set system properties for unit tests): -run.jvmargs= -run.test.classpath=\ - ${javac.test.classpath}:\ - ${build.test.classes.dir} -src.classes.dir=${file.reference.build-classes} -src.dir=${file.reference.GUI-src} -src.src.dir=${file.reference.jOTDB-src} diff --git a/SAS/OTB/GUI/nbproject/project.xml b/SAS/OTB/GUI/nbproject/project.xml deleted file mode 100644 index a037d084b2b880df781bb8b470d804a13d85a1d1..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/nbproject/project.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://www.netbeans.org/ns/project/1"> - <type>org.netbeans.modules.java.j2seproject</type> - <configuration> - <data xmlns="http://www.netbeans.org/ns/j2se-project/2"> - <name>GUI</name> - <minimum-ant-version>1.6</minimum-ant-version> - <source-roots> - <root id="src.classes.dir"/> - <root id="src.src.dir"/> - <root id="src.dir"/> - </source-roots> - <test-roots/> - </data> - </configuration> -</project> diff --git a/SAS/OTB/GUI/package.dox b/SAS/OTB/GUI/package.dox deleted file mode 100644 index c880850d21a2a08d1a36e5a3c5b96694f5bc6a59..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/package.dox +++ /dev/null @@ -1,2 +0,0 @@ -// \ingroup OTB -// \defgroup GUI GUI Description diff --git a/SAS/OTB/GUI/src/Makefile.am b/SAS/OTB/GUI/src/Makefile.am deleted file mode 100644 index 3aec98c7f184840695333cd8f0ddbed142ee2971..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/src/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -# if HAVE_SHMEM -# SUBDIRS = shmem . -# endif - -INSTHDRS = - -NOINSTHDRS = - -TCCHDRS = - -nobase_pkginclude_HEADERS = $(INSTHDRS) $(TCCHDRS) - -noinst_HEADERS = $(NOINSTHDRS) - -DOCHDRS = $(INSTHDRS) $(NOINSTHDRS) - -lib_LTLIBRARIES = libgui.la - -libgui_la_SOURCES = - -# AM_YFLAGS = -d -p KeyParse -# AM_LFLAGS = -PKeyTokenize -# LEX_OUTPUT_ROOT = lex.KeyTokenize - -# if HAVE_SHMEM -# libgui_la_LIBADD = shmem/libshmem.la -# endif - -bin_PROGRAMS = - -glishdir = $(libexecdir)/glish -dist_glish_SCRIPTS = - -pythondir = $(bindir) -dist_python_SCRIPTS = - -scriptdir = $(bindir) -dist_script_SCRIPTS = - -include $(top_srcdir)/Makefile.common diff --git a/SAS/OTB/GUI/src/gui/LogTableModel.java b/SAS/OTB/GUI/src/gui/LogTableModel.java deleted file mode 100644 index c986d7ea668fda2108825b27690befe61e1942a7..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/src/gui/LogTableModel.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * LogTableModel.java - * - * Created on September 23, 2005, 11:55 AM - * - * To change this template, choose Tools | Options and locate the template under - * the Source Creation and Management node. Right-click the template and choose - * Open. You can then make changes to the template in the Source Editor. - */ - -package gui; -import jOTDB.jOTDBvalue; -import jOTDB.jTreeValueInterface; -import java.util.Vector; -import javax.swing.table.AbstractTableModel; - -/** - * - * @author coolen - */ -public class LogTableModel extends AbstractTableModel { - - - String headers[] = {"Name","Value","TimeStamp"}; - Object data[][]; - boolean itsDebugFlag=false; - - public void setDebugFlag(boolean aFlag) { - itsDebugFlag=aFlag; - } - - public LogTableModel(jTreeValueInterface anInterface, Vector aLogList){ - setLogList(anInterface, aLogList); - } - - public int getRowCount() { - return data.length; - } - - public String getColumnName(int c) { - return headers[c]; - } - - public int getColumnCount() { - return headers.length; - } - - - public Object getValueAt(int r, int c) { - return data[r][c]; - } - - public void setLogList(jTreeValueInterface aRemoteValue,Vector aLogList) { - data = new Object[aLogList.size()][headers.length]; - for (int k=0; k< aLogList.size();k++) { - String [] aS=((jOTDBvalue)aLogList.elementAt(k)).name.split("[.]"); - String aName=aS[aS.length-1]; - data[k][0]=aName; - data[k][1]=((jOTDBvalue)aLogList.elementAt(k)).value; - data[k][2]=((jOTDBvalue)aLogList.elementAt(k)).time; - } - fireTableDataChanged(); - } -} diff --git a/SAS/OTB/GUI/src/gui/Main.java b/SAS/OTB/GUI/src/gui/Main.java deleted file mode 100644 index 8f424e512f85fe85bf141a2ffad0edaadb18be94..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/src/gui/Main.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Main.java - * - * Created on September 9, 2005, 2:21 PM - * - * To change this template, choose Tools | Options and locate the template under - * the Source Creation and Management node. Right-click the template and choose - * Open. You can then make changes to the template in the Source Editor. - */ - -package gui; - - - -/** - * - * @author coolen - */ -public class Main { - - - /** Creates a new instance of Main */ - public Main() { - } - - /** - * @param args the command line arguments - */ - public static void main(String[] args) { - otbgui aGui = new otbgui(); - aGui.setSize(1280,1024); - aGui.setVisible(true); - } -} diff --git a/SAS/OTB/GUI/src/gui/SettingsDialog.form b/SAS/OTB/GUI/src/gui/SettingsDialog.form deleted file mode 100644 index 0415fd27618c0133fe41b13ba7c98d61116600a7..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/src/gui/SettingsDialog.form +++ /dev/null @@ -1,205 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> - -<Form version="1.0" type="org.netbeans.modules.form.forminfo.JDialogFormInfo"> - <SyntheticProperties> - <SyntheticProperty name="formSizePolicy" type="int" value="2"/> - </SyntheticProperties> - <AuxValues> - <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> - <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> - <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> - <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> - </AuxValues> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> - <Property name="useNullLayout" type="boolean" value="false"/> - </Layout> - <SubComponents> - <Component class="javax.swing.JLabel" name="RMIServerNameLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="RMI Server Name"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="20" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="RMIServerNameText"> - <Properties> - <Property name="toolTipText" type="java.lang.String" value="give host(name or ip) where to find the RMI server"/> - </Properties> - <AuxValues> - <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JTextField(otbgui.RMIServerName);"/> - </AuxValues> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="20" width="190" height="20"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="RMIServerPortLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="RMI Server Port"/> - <Property name="toolTipText" type="java.lang.String" value=""/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="45" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="RMIServerPortText"> - <Properties> - <Property name="toolTipText" type="java.lang.String" value="Port on RMI Server to use"/> - </Properties> - <AuxValues> - <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JTextField(otbgui.RMIServerPort);"/> - </AuxValues> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="45" width="60" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="RMIRegistryNameLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="RMI Registry Name"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="70" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="RMIRegistryNameText"> - <Properties> - <Property name="toolTipText" type="java.lang.String" value="Name used in Registry on Server for this port"/> - </Properties> - <AuxValues> - <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JTextField(otbgui.RMIRegistryName);"/> - </AuxValues> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="70" width="190" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="OTDBUserNameLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="OTDB UserName"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="95" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="OTDBUserNameText"> - <Properties> - <Property name="toolTipText" type="java.lang.String" value="UserName for OTDB Database"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <AuxValues> - <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JTextField(otbgui.OTDBUserName);"/> - </AuxValues> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="95" width="190" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="OTDBPasswordLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="OTDB Password"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="120" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JPasswordField" name="OTDBPasswordText"> - <Properties> - <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> - <Font name="Tahoma" size="11" style="0"/> - </Property> - <Property name="toolTipText" type="java.lang.String" value="OTDB Database Password"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <AuxValues> - <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JPasswordField(otbgui.OTDBPassword);
"/> - </AuxValues> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="120" width="190" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="OTDBDBNameLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="OTDB DBName"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="145" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="OTDBDBNameText"> - <Properties> - <Property name="toolTipText" type="java.lang.String" value="OTDB Database Name"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <AuxValues> - <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JTextField(otbgui.OTDBDBName);"/> - </AuxValues> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="145" width="190" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="SettingsDialogOkButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Ok"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="SettingsDialogOkButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="200" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="SettingsDialogCancelButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Cancel"/> - <Property name="toolTipText" type="java.lang.String" value="Reset to Default and quit dialog"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="SettingsDialogCancelButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="70" y="200" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="SettingsDialogApplyButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Apply"/> - <Property name="toolTipText" type="java.lang.String" value="Apply the filled in values"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="SettingsDialogApplyButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="200" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - </SubComponents> -</Form> diff --git a/SAS/OTB/GUI/src/gui/SettingsDialog.java b/SAS/OTB/GUI/src/gui/SettingsDialog.java deleted file mode 100644 index 959198aedb860d0d1b691427e7d4e0f23f690e89..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/src/gui/SettingsDialog.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * SettingsDialog.java - * - * Created on 15 september 2005, 12:41 - */ - -package gui; - -/** - * - * @author Arthur Coolen - */ -public class SettingsDialog extends javax.swing.JDialog { - - /** - * Creates new form SettingsDialog - */ - public SettingsDialog() { - initComponents(); - } - - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the Form Editor. - */ - // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents - private void initComponents() { - RMIServerNameLabel = new javax.swing.JLabel(); - RMIServerNameText = new javax.swing.JTextField(otbgui.RMIServerName); - RMIServerPortLabel = new javax.swing.JLabel(); - RMIServerPortText = new javax.swing.JTextField(otbgui.RMIServerPort); - RMIRegistryNameLabel = new javax.swing.JLabel(); - RMIRegistryNameText = new javax.swing.JTextField(otbgui.RMIRegistryName); - OTDBUserNameLabel = new javax.swing.JLabel(); - OTDBUserNameText = new javax.swing.JTextField(otbgui.OTDBUserName); - OTDBPasswordLabel = new javax.swing.JLabel(); - OTDBPasswordText = new javax.swing.JPasswordField(otbgui.OTDBPassword); - - OTDBDBNameLabel = new javax.swing.JLabel(); - OTDBDBNameText = new javax.swing.JTextField(otbgui.OTDBDBName); - SettingsDialogOkButton = new javax.swing.JButton(); - SettingsDialogCancelButton = new javax.swing.JButton(); - SettingsDialogApplyButton = new javax.swing.JButton(); - - getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); - - RMIServerNameLabel.setText("RMI Server Name"); - getContentPane().add(RMIServerNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, -1, -1)); - - RMIServerNameText.setToolTipText("give host(name or ip) where to find the RMI server"); - getContentPane().add(RMIServerNameText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 20, 190, 20)); - - RMIServerPortLabel.setText("RMI Server Port"); - RMIServerPortLabel.setToolTipText(""); - getContentPane().add(RMIServerPortLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 45, -1, -1)); - - RMIServerPortText.setToolTipText("Port on RMI Server to use"); - getContentPane().add(RMIServerPortText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 45, 60, -1)); - - RMIRegistryNameLabel.setText("RMI Registry Name"); - getContentPane().add(RMIRegistryNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, -1, -1)); - - RMIRegistryNameText.setToolTipText("Name used in Registry on Server for this port"); - getContentPane().add(RMIRegistryNameText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 70, 190, -1)); - - OTDBUserNameLabel.setText("OTDB UserName"); - getContentPane().add(OTDBUserNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 95, -1, -1)); - - OTDBUserNameText.setToolTipText("UserName for OTDB Database"); - OTDBUserNameText.setEnabled(false); - getContentPane().add(OTDBUserNameText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 95, 190, -1)); - - OTDBPasswordLabel.setText("OTDB Password"); - getContentPane().add(OTDBPasswordLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 120, -1, -1)); - - OTDBPasswordText.setFont(new java.awt.Font("Tahoma", 0, 11)); - OTDBPasswordText.setToolTipText("OTDB Database Password"); - OTDBPasswordText.setEnabled(false); - getContentPane().add(OTDBPasswordText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 120, 190, -1)); - - OTDBDBNameLabel.setText("OTDB DBName"); - getContentPane().add(OTDBDBNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 145, -1, -1)); - - OTDBDBNameText.setToolTipText("OTDB Database Name"); - OTDBDBNameText.setEnabled(false); - getContentPane().add(OTDBDBNameText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 145, 190, -1)); - - SettingsDialogOkButton.setText("Ok"); - SettingsDialogOkButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - SettingsDialogOkButtonActionPerformed(evt); - } - }); - - getContentPane().add(SettingsDialogOkButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 200, -1, -1)); - - SettingsDialogCancelButton.setText("Cancel"); - SettingsDialogCancelButton.setToolTipText("Reset to Default and quit dialog"); - SettingsDialogCancelButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - SettingsDialogCancelButtonActionPerformed(evt); - } - }); - - getContentPane().add(SettingsDialogCancelButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 200, -1, -1)); - - SettingsDialogApplyButton.setText("Apply"); - SettingsDialogApplyButton.setToolTipText("Apply the filled in values"); - SettingsDialogApplyButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - SettingsDialogApplyButtonActionPerformed(evt); - } - }); - - getContentPane().add(SettingsDialogApplyButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 200, -1, -1)); - - } - // </editor-fold>//GEN-END:initComponents - - private void SettingsDialogApplyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SettingsDialogApplyButtonActionPerformed - otbgui.RMIServerName = RMIServerNameText.getText(); - otbgui.RMIServerPort = RMIServerPortText.getText(); - otbgui.RMIRegistryName= RMIRegistryNameText.getText(); - otbgui.OTDBUserName = OTDBUserNameText.getText(); - char[] duh = OTDBPasswordText.getPassword(); - String aS = new String(duh); - otbgui.OTDBPassword= aS; - otbgui.OTDBDBName = OTDBDBNameText.getText(); - }//GEN-LAST:event_SettingsDialogApplyButtonActionPerformed - - private void SettingsDialogCancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SettingsDialogCancelButtonActionPerformed - RMIServerNameText.setText(otbgui.RMIServerName); - RMIServerPortText.setText(otbgui.RMIServerPort); - RMIRegistryNameText.setText(otbgui.RMIRegistryName); - OTDBUserNameText.setText(otbgui.OTDBUserName); - OTDBPasswordText.setText(otbgui.OTDBPassword); - OTDBDBNameText.setText(otbgui.OTDBDBName); - }//GEN-LAST:event_SettingsDialogCancelButtonActionPerformed - - private void SettingsDialogOkButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SettingsDialogOkButtonActionPerformed - otbgui.RMIServerName = RMIServerNameText.getText(); - otbgui.RMIServerPort = RMIServerPortText.getText(); - otbgui.RMIRegistryName= RMIRegistryNameText.getText(); - otbgui.OTDBUserName = OTDBUserNameText.getText(); - char[] duh = OTDBPasswordText.getPassword(); - String aS = new String(duh); - otbgui.OTDBPassword = aS; - otbgui.OTDBDBName = OTDBDBNameText.getText(); - this.dispose(); - }//GEN-LAST:event_SettingsDialogOkButtonActionPerformed - - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JLabel OTDBDBNameLabel; - private javax.swing.JTextField OTDBDBNameText; - private javax.swing.JLabel OTDBPasswordLabel; - private javax.swing.JPasswordField OTDBPasswordText; - private javax.swing.JLabel OTDBUserNameLabel; - private javax.swing.JTextField OTDBUserNameText; - private javax.swing.JLabel RMIRegistryNameLabel; - private javax.swing.JTextField RMIRegistryNameText; - private javax.swing.JLabel RMIServerNameLabel; - private javax.swing.JTextField RMIServerNameText; - private javax.swing.JLabel RMIServerPortLabel; - private javax.swing.JTextField RMIServerPortText; - private javax.swing.JButton SettingsDialogApplyButton; - private javax.swing.JButton SettingsDialogCancelButton; - private javax.swing.JButton SettingsDialogOkButton; - // End of variables declaration//GEN-END:variables - -} diff --git a/SAS/OTB/GUI/src/gui/otbgui.form b/SAS/OTB/GUI/src/gui/otbgui.form deleted file mode 100644 index fc08573351b96de6e17f35acea1bfc3f6ed69ab2..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/src/gui/otbgui.form +++ /dev/null @@ -1,1165 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> - -<Form version="1.2" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> - <NonVisualComponents> - <Menu class="javax.swing.JMenuBar" name="jMenuBar1"> - <Properties> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 19]"/> - </Property> - </Properties> - <SubComponents> - <Menu class="javax.swing.JMenu" name="FileMenu"> - <Properties> - <Property name="toolTipText" type="java.lang.String" value="File Menu"/> - <Property name="label" type="java.lang.String" value="File"/> - </Properties> - <SubComponents> - <MenuItem class="javax.swing.JMenuItem" name="FileMenuExit"> - <Properties> - <Property name="label" type="java.lang.String" value="Exit"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="FileMenuExitActionPerformed"/> - </Events> - </MenuItem> - </SubComponents> - </Menu> - <Menu class="javax.swing.JMenu" name="SourceMenu"> - <Properties> - <Property name="text" type="java.lang.String" value="Source"/> - <Property name="toolTipText" type="java.lang.String" value="Source selection Menu"/> - </Properties> - <SubComponents> - <MenuItem class="javax.swing.JRadioButtonMenuItem" name="SourceMenuInputFile"> - <Properties> - <Property name="selected" type="boolean" value="true"/> - <Property name="text" type="java.lang.String" value="Input from File"/> - <Property name="toolTipText" type="java.lang.String" value="Set input to file"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="SourceMenuInputFileActionPerformed"/> - </Events> - </MenuItem> - <MenuItem class="javax.swing.JRadioButtonMenuItem" name="SourceMenuInputOTDB"> - <Properties> - <Property name="text" type="java.lang.String" value="Input from OTDB"/> - <Property name="toolTipText" type="java.lang.String" value="Set input to OTDB"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="SourceMenuInputOTDBActionPerformed"/> - </Events> - </MenuItem> - </SubComponents> - </Menu> - <Menu class="javax.swing.JMenu" name="SettingsMenu"> - <Properties> - <Property name="text" type="java.lang.String" value="Settings"/> - <Property name="toolTipText" type="java.lang.String" value="Settings Menu"/> - </Properties> - <SubComponents> - <MenuItem class="javax.swing.JMenuItem" name="SettingsMenuRMISettings"> - <Properties> - <Property name="text" type="java.lang.String" value="RMISettings"/> - <Property name="toolTipText" type="java.lang.String" value="set RMI server & database"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="SettingsMenuRMISettingsActionPerformed"/> - </Events> - </MenuItem> - <MenuItem class="javax.swing.JRadioButtonMenuItem" name="SettingsMenuDebugSetting"> - <Properties> - <Property name="text" type="java.lang.String" value="Debug on"/> - <Property name="toolTipText" type="java.lang.String" value="Set Debug on to get more debug output"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="SettingsMenuDebugSettingActionPerformed"/> - </Events> - </MenuItem> - </SubComponents> - </Menu> - </SubComponents> - </Menu> - </NonVisualComponents> - <Properties> - <Property name="defaultCloseOperation" type="int" value="3"/> - <Property name="maximizedBounds" type="java.awt.Rectangle" editor="org.netbeans.beaninfo.editors.RectangleEditor"> - <Rectangle value="[0, 0, 1280, 1024]"/> - </Property> - <Property name="name" type="java.lang.String" value="mainFrame"/> - </Properties> - <SyntheticProperties> - <SyntheticProperty name="menuBar" type="java.lang.String" value="jMenuBar1"/> - <SyntheticProperty name="formSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,115,0,0,3,32"/> - <SyntheticProperty name="formSizePolicy" type="int" value="0"/> - <SyntheticProperty name="generateSize" type="boolean" value="true"/> - <SyntheticProperty name="generateCenter" type="boolean" value="true"/> - </SyntheticProperties> - <AuxValues> - <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> - <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> - <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> - <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> - <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,89,0,0,3,28"/> - </AuxValues> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/> - <SubComponents> - <Container class="javax.swing.JTabbedPane" name="MainPane"> - <Properties> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 500]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 500]"/> - </Property> - </Properties> - <AccessibilityProperties> - <Property name="AccessibleContext.accessibleName" type="java.lang.String" value=""/> - </AccessibilityProperties> - <Events> - <EventHandler event="stateChanged" listener="javax.swing.event.ChangeListener" parameters="javax.swing.event.ChangeEvent" handler="MainPaneStateChanged"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> - <BorderConstraints direction="Center"/> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"/> - <SubComponents> - <Container class="javax.swing.JPanel" name="TreePanel"> - <Properties> - <Property name="toolTipText" type="java.lang.String" value="Search on one or more of the given constraints"/> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[700, 475]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[700, 475]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> - <JTabbedPaneConstraints tabName="TreeList" toolTip="change tree search"> - <Property name="tabTitle" type="java.lang.String" value="TreeList"/> - <Property name="tabToolTip" type="java.lang.String" value="change tree search"/> - </JTabbedPaneConstraints> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/> - <SubComponents> - <Container class="javax.swing.JScrollPane" name="TreeTableScrollPane"> - <Properties> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 22]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 403]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> - <BorderConstraints direction="Center"/> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> - <SubComponents> - <Component class="javax.swing.JTable" name="TreeTable"> - <Properties> - <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> - <Table columnCount="10" rowCount="0"> - <Column editable="false" title="TreeID" type="java.lang.String"/> - <Column editable="false" title="Creator" type="java.lang.String"/> - <Column editable="false" title="Creation Date" type="java.lang.String"/> - <Column editable="false" title="Class" type="java.lang.String"/> - <Column editable="false" title="Type" type="java.lang.String"/> - <Column editable="false" title="State" type="java.lang.String"/> - <Column editable="false" title="MomID" type="java.lang.String"/> - <Column editable="false" title="Campaign" type="java.lang.String"/> - <Column editable="false" title="Start Time" type="java.lang.String"/> - <Column editable="false" title="Stop Time" type="java.lang.String"/> - </Table> - </Property> - </Properties> - <Events> - <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="TreeTableMouseClicked"/> - </Events> - <AuxValues> - <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="TreeTableScrollPane.add(TreeTable);"/> - </AuxValues> - </Component> - </SubComponents> - </Container> - <Component class="javax.swing.JButton" name="TreeSelectButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Select"/> - <Property name="toolTipText" type="java.lang.String" value="Select the highlighted Tree to work with"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="TreeSelectButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> - <BorderConstraints direction="South"/> - </Constraint> - </Constraints> - </Component> - </SubComponents> - </Container> - <Container class="javax.swing.JPanel" name="BrowsePanel"> - <Properties> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 475]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 475]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> - <JTabbedPaneConstraints tabName="Browse" toolTip="Treeview"> - <Property name="tabTitle" type="java.lang.String" value="Browse"/> - <Property name="tabToolTip" type="java.lang.String" value="Treeview"/> - </JTabbedPaneConstraints> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/> - <SubComponents> - <Container class="javax.swing.JScrollPane" name="treeScrollPane"> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> - <BorderConstraints direction="West"/> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> - <SubComponents> - <Component class="javax.swing.JTree" name="VICTree"> - <Properties> - <Property name="autoscrolls" type="boolean" value="true"/> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[25, 72]"/> - </Property> - <Property name="showsRootHandles" type="boolean" value="true"/> - <Property name="toggleClickCount" type="int" value="1"/> - </Properties> - <Events> - <EventHandler event="valueChanged" listener="javax.swing.event.TreeSelectionListener" parameters="javax.swing.event.TreeSelectionEvent" handler="TreeSelectionListener"/> - </Events> - <AuxValues> - <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new javax.swing.JTree(root);"/> - <AuxValue name="JavaCodeGenerator_SerializeTo" type="java.lang.String" value="otbgui_jTree1"/> - </AuxValues> - </Component> - </SubComponents> - </Container> - <Container class="javax.swing.JTabbedPane" name="treeTabbedPane"> - <Events> - <EventHandler event="stateChanged" listener="javax.swing.event.ChangeListener" parameters="javax.swing.event.ChangeEvent" handler="treeTabbedPaneStateChanged"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> - <BorderConstraints direction="Center"/> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"/> - <SubComponents> - <Container class="javax.swing.JPanel" name="NodePanel"> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> - <JTabbedPaneConstraints tabName="Node" toolTip="Node Page"> - <Property name="tabTitle" type="java.lang.String" value="Node"/> - <Property name="tabToolTip" type="java.lang.String" value="Node Page"/> - </JTabbedPaneConstraints> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> - <Property name="useNullLayout" type="boolean" value="false"/> - </Layout> - <SubComponents> - <Component class="javax.swing.JLabel" name="NodeNameLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Name"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="10" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="NodeIndexLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Index"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="35" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="NodeInstancesLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Instances"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="60" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="NodeLimitsLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Limits"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="85" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="NodeDescriptionLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Description"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="110" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="NodeIndexText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="35" width="200" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="NodeInstancesText"> - <Properties> - <Property name="text" type="java.lang.String" value="-1"/> - <Property name="toolTipText" type="java.lang.String" value="Number of Instances for this Node "/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="NodeInstancesTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="60" width="200" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="NodeDescriptionText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="toolTipText" type="java.lang.String" value="Description for this Node"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="NodeDescriptionTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="110" width="440" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="NodeLimitsText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="toolTipText" type="java.lang.String" value="Limits for this Node"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="NodeLimitsTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="85" width="200" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="NodeNameText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="toolTipText" type="java.lang.String" value="Name for this Node"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="10" width="440" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="NodeCancelButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Cancel"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="NodeCancelButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="250" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="NodeApplyButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Apply"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="NodeApplyButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="110" y="250" width="70" height="-1"/> - </Constraint> - </Constraints> - </Component> - </SubComponents> - </Container> - <Container class="javax.swing.JPanel" name="ParamPanel"> - <Properties> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> - <JTabbedPaneConstraints tabName="Param" toolTip="Param Page"> - <Property name="tabTitle" type="java.lang.String" value="Param"/> - <Property name="tabToolTip" type="java.lang.String" value="Param Page"/> - </JTabbedPaneConstraints> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> - <Property name="useNullLayout" type="boolean" value="false"/> - </Layout> - <SubComponents> - <Component class="javax.swing.JLabel" name="ParamNameLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Name"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="10" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="ParamIndexLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Index"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="35" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="ParamTypeLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Type"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="60" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="ParamUnitLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Unit"/> - </Properties> - <AuxValues> - <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="false"/> - </AuxValues> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="85" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="ParamPruningLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Pruning"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="110" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="ParamValMomentLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="ValMoment"/> - <Property name="verifyInputWhenFocusTarget" type="boolean" value="false"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="135" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="ParamRTmodLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="RTmod"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="160" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="ParamLimitsLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="(Default) Value"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="185" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="ParamDescriptionLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Description"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="210" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="ParamNameText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="toolTipText" type="java.lang.String" value="Name for this Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="10" width="440" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="ParamIndexText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="toolTipText" type="java.lang.String" value="Index from this Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="35" width="200" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JComboBox" name="ParamTypeSelection"> - <Properties> - <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> - <StringArray count="13"> - <StringItem index="0" value="node"/> - <StringItem index="1" value="bool"/> - <StringItem index="2" value="int"/> - <StringItem index="3" value="long"/> - <StringItem index="4" value="flt"/> - <StringItem index="5" value="dbl"/> - <StringItem index="6" value="icpx"/> - <StringItem index="7" value="lcpx"/> - <StringItem index="8" value="fcpx"/> - <StringItem index="9" value="dcpx"/> - <StringItem index="10" value="text"/> - <StringItem index="11" value="bin"/> - <StringItem index="12" value="uint"/> - </StringArray> - </Property> - <Property name="toolTipText" type="java.lang.String" value="Type of this Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="ParamTypeSelectionMouseClicked"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="60" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JComboBox" name="ParamUnitSelection"> - <Properties> - <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> - <StringArray count="10"> - <StringItem index="0" value="-"/> - <StringItem index="1" value="Ampere"/> - <StringItem index="2" value="m/s"/> - <StringItem index="3" value="dB"/> - <StringItem index="4" value="time4"/> - <StringItem index="5" value="time6"/> - <StringItem index="6" value="RAM"/> - <StringItem index="7" value="GFLOP"/> - <StringItem index="8" value="MB/s"/> - <StringItem index="9" value="Mhz"/> - </StringArray> - </Property> - <Property name="toolTipText" type="java.lang.String" value="Unit for this Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="ParamUnitSelectionMouseClicked"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="85" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="ParamPruningText"> - <Properties> - <Property name="text" type="java.lang.String" value="-1"/> - <Property name="toolTipText" type="java.lang.String" value="Pruning for this Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="ParamPruningTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="110" width="200" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="ParamValMomentText"> - <Properties> - <Property name="text" type="java.lang.String" value="-1"/> - <Property name="toolTipText" type="java.lang.String" value="Valmoment for the Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="ParamValMomentTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="135" width="200" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="ParamLimitsText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="toolTipText" type="java.lang.String" value="Limits for this Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[200, 19]"/> - </Property> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="ParamLimitsTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="185" width="200" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="ParamDescriptionText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="toolTipText" type="java.lang.String" value="Description for this Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[440, 19]"/> - </Property> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="ParamDescriptionTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="210" width="440" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="ParamCancelButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Cancel"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ParamCancelButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="40" y="250" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="ParamApplyButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Apply"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ParamApplyButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="110" y="250" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JComboBox" name="ParamRTModSelection"> - <Properties> - <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> - <StringArray count="2"> - <StringItem index="0" value="False"/> - <StringItem index="1" value="True"/> - </StringArray> - </Property> - <Property name="toolTipText" type="java.lang.String" value="RunTime Modification for this Parameter"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="ParamRTModSelectionMouseClicked"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="140" y="160" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - </SubComponents> - </Container> - <Container class="javax.swing.JPanel" name="LogPanel"> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> - <JTabbedPaneConstraints tabName="Log" toolTip="Log Page"> - <Property name="tabTitle" type="java.lang.String" value="Log"/> - <Property name="tabToolTip" type="java.lang.String" value="Log Page"/> - </JTabbedPaneConstraints> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> - <Property name="useNullLayout" type="boolean" value="false"/> - </Layout> - <SubComponents> - <Container class="javax.swing.JScrollPane" name="LogTableScrollPane"> - <Properties> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[453, 350]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="0" y="0" width="796" height="350"/> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> - <SubComponents> - <Component class="javax.swing.JTable" name="LogTable"> - <Properties> - <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> - <Table columnCount="3" rowCount="0"> - <Column editable="false" title="ParamName" type="java.lang.String"/> - <Column editable="false" title="Value" type="java.lang.String"/> - <Column editable="false" title="TimeStamp" type="java.lang.String"/> - </Table> - </Property> - <Property name="autoscrolls" type="boolean" value="false"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <AuxValues> - <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="LogTableScrollPane.add(LogTable);"/> - </AuxValues> - </Component> - </SubComponents> - </Container> - <Component class="javax.swing.JLabel" name="LogParamNameLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="ParamName"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="370" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="LogParamNameText"> - <Properties> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="100" y="370" width="430" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JCheckBox" name="LogParamRecentOnlyCheckbox"> - <Properties> - <Property name="text" type="java.lang.String" value="Most Recent Only"/> - <Property name="toolTipText" type="java.lang.String" value="Select to get only the most recent log val"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="LogParamRecentOnlyCheckboxMouseClicked"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="550" y="400" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="LogParamEndTimeLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="EndTime"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="410" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="LogParamStartTimeLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="StartTime"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="390" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="LogParamStartTimeText"> - <Properties> - <Property name="text" type="java.lang.String" value="2005-01-01 00:00:00.000"/> - <Property name="toolTipText" type="java.lang.String" value="Give Start date/time for logging"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="LogParamStartTimeTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="100" y="390" width="180" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="LogParamEndTimeText"> - <Properties> - <Property name="text" type="java.lang.String" value="2005-12-31 59:59:59.000"/> - <Property name="toolTipText" type="java.lang.String" value="Give end date/time for log search"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="LogParamEndTimeTextKeyTyped"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="100" y="410" width="180" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="logParamApplyButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Apply"/> - <Property name="toolTipText" type="java.lang.String" value="Apply changes to logform"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="logParamApplyButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="90" y="440" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="logParamCancelButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Cancel"/> - <Property name="toolTipText" type="java.lang.String" value="restore defaults"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="logParamCancelButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="20" y="440" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - </SubComponents> - </Container> - </SubComponents> - </Container> - </SubComponents> - </Container> - <Container class="javax.swing.JPanel" name="ControlPanel"> - <Properties> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 475]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[700, 475]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription"> - <JTabbedPaneConstraints tabName="Control" toolTip="ControlPanel"> - <Property name="tabTitle" type="java.lang.String" value="Control"/> - <Property name="tabToolTip" type="java.lang.String" value="ControlPanel"/> - </JTabbedPaneConstraints> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> - <Property name="useNullLayout" type="boolean" value="false"/> - </Layout> - <SubComponents> - <Component class="javax.swing.JButton" name="CtrlInstButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Instanciate Tree"/> - <Property name="toolTipText" type="java.lang.String" value="Make an instantiated tree from a template"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="CtrlInstButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="60" y="50" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="CtrlDeleteButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Delete"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="CtrlDeleteButtonActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="60" y="90" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JButton" name="CtrlCopyButton"> - <Properties> - <Property name="text" type="java.lang.String" value="Copy"/> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="60" y="130" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JComboBox" name="jComboBox1"> - <Properties> - <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> - <StringArray count="9"> - <StringItem index="0" value="idle"/> - <StringItem index="1" value="being specified"/> - <StringItem index="2" value="specified"/> - <StringItem index="3" value="scheduled"/> - <StringItem index="4" value="queued"/> - <StringItem index="5" value="active"/> - <StringItem index="6" value="finished"/> - <StringItem index="7" value="aborted"/> - <StringItem index="8" value="obsolete"/> - </StringArray> - </Property> - <Property name="enabled" type="boolean" value="false"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jComboBox1ActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="350" y="50" width="160" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="CtrlChangeTreeStateLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="changeTreeState"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="350" y="30" width="130" height="20"/> - </Constraint> - </Constraints> - </Component> - </SubComponents> - </Container> - </SubComponents> - </Container> - <Container class="javax.swing.JPanel" name="infoPanel"> - <Properties> - <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 29]"/> - </Property> - <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> - <Dimension value="[750, 29]"/> - </Property> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> - <BorderConstraints direction="South"/> - </Constraint> - </Constraints> - - <Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout"> - <Property name="useNullLayout" type="boolean" value="false"/> - </Layout> - <SubComponents> - <Component class="javax.swing.JLabel" name="SelectedInputLabel"> - <Properties> - <Property name="text" type="java.lang.String" value="Input from: None"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="10" y="10" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JLabel" name="SelectedTreeLabel"> - <Properties> - <Property name="horizontalAlignment" type="int" value="4"/> - <Property name="text" type="java.lang.String" value="SelectedTree"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="340" y="10" width="-1" height="-1"/> - </Constraint> - </Constraints> - </Component> - <Component class="javax.swing.JTextField" name="selectedTreeTextField"> - <Properties> - <Property name="columns" type="int" value="25"/> - <Property name="editable" type="boolean" value="false"/> - <Property name="text" type="java.lang.String" value="None"/> - <Property name="opaque" type="boolean" value="false"/> - </Properties> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription"> - <AbsoluteConstraints x="430" y="10" width="350" height="-1"/> - </Constraint> - </Constraints> - </Component> - </SubComponents> - </Container> - </SubComponents> -</Form> diff --git a/SAS/OTB/GUI/src/gui/otbgui.java b/SAS/OTB/GUI/src/gui/otbgui.java deleted file mode 100644 index 902bd05d83ea373b4be26bf4daf2ed60a4f95ffc..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/src/gui/otbgui.java +++ /dev/null @@ -1,1971 +0,0 @@ -/* - - * otbgui.ja - -* - - * Created on April 26, 2005, 2:09 PM - - */ - - - -package gui; - - - -import jOTDB.jConverterInterface; -import jOTDB.jOTDBinterface; -import jOTDB.jOTDBnode; -import jOTDB.jOTDBparam; -import jOTDB.jTreeMaintenanceInterface; -import jOTDB.jTreeValueInterface; -import java.awt.Cursor; -import java.io.File; -import java.rmi.Naming; -import java.util.Date; -import java.util.Enumeration; -import java.util.Vector; -import javax.swing.JFileChooser; -import javax.swing.JOptionPane; -import javax.swing.ListSelectionModel; -import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.TreePath; - - -/** - * - * @author Arthur Coolen - */ - - - - - -public class otbgui extends javax.swing.JFrame { - - // ---------------- Private vars --------------- - - // Param Defaults - private String aParamName = "None"; - private String aParamIndex = "-1"; - private int aParamType = 0; - private int aParamUnit = 0; - private String aParamPruning = "-1"; - private String aParamValMoment = "-1"; - private int aParamRTMod = 0; - private String aParamLimits = "None"; - private String aParamDescription = "None"; - - // Node defaults - private String aNodeName = "None"; - private String aNodeIndex = "-1"; - private boolean aNodeLeaf = false; - private String aNodeInstances = "-1"; - private String aNodeLimits = "None"; - private String aNodeDescription = "None"; - - // Log defaults - private boolean setMostRecent=false; - private String itsStartTime="2001-01-01 00:00:00"; - private String itsEndTime="2005-12-31 23:59:59"; - private String itsParamName="None"; - - // initial button states - private boolean nodeButtonsEnabled=false; - private boolean paramButtonsEnabled=false; - private boolean logButtonsEnabled=false; - - // RMI interfaces - private static jOTDBinterface remoteOTDB; - private static jTreeMaintenanceInterface remoteMaintenance; - private static jTreeValueInterface remoteValue; - private static jConverterInterface remoteTypes; - - private DefaultMutableTreeNode root = new DefaultMutableTreeNode(); - private DefaultMutableTreeNode aNode = new DefaultMutableTreeNode(); - - private boolean isTreeFilled = false; - private boolean isOTDB =false; - private boolean isFile=true; - - private String itsTreeTabbedPaneFocus="NodePanel"; - - private jOTDBparam itsPresentParam; - private jOTDBnode itsPresentNode; - - // -------------- public vars ------------------ - - public boolean itsDebugFlag = false; - public static String itsSelectedTree = "None"; - public String itsSelectedTreeType = ""; - public Integer SelectedTreeID = -1; - public String SelectedTreeState = ""; - public Integer SelectedNodeID = -1; - - // SettingsDialog Defaults - public static String RMIServerName = "lofar17.astron.nl"; - public static String RMIServerPort = "10799"; - public static String RMIRegistryName = jOTDBinterface.SERVICENAME; - public static String RMIMaintenanceName = jTreeMaintenanceInterface.SERVICENAME; - public static String RMIValName = jTreeValueInterface.SERVICENAME; - public static String RMIConverterName = jConverterInterface.SERVICENAME; - public static String OTDBUserName = "paulus"; - public static String OTDBPassword = "boskabouter"; - public static String OTDBDBName = "coolen"; - - - /** Creates new form otbgui */ - public otbgui() { - initComponents(); - } - - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the Form Editor. - */ - // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents - private void initComponents() { - MainPane = new javax.swing.JTabbedPane(); - TreePanel = new javax.swing.JPanel(); - TreeTableScrollPane = new javax.swing.JScrollPane(); - TreeTable = new javax.swing.JTable(); - TreeSelectButton = new javax.swing.JButton(); - BrowsePanel = new javax.swing.JPanel(); - treeScrollPane = new javax.swing.JScrollPane(); - VICTree = new javax.swing.JTree(root); - treeTabbedPane = new javax.swing.JTabbedPane(); - NodePanel = new javax.swing.JPanel(); - NodeNameLabel = new javax.swing.JLabel(); - NodeIndexLabel = new javax.swing.JLabel(); - NodeInstancesLabel = new javax.swing.JLabel(); - NodeLimitsLabel = new javax.swing.JLabel(); - NodeDescriptionLabel = new javax.swing.JLabel(); - NodeIndexText = new javax.swing.JTextField(); - NodeInstancesText = new javax.swing.JTextField(); - NodeDescriptionText = new javax.swing.JTextField(); - NodeLimitsText = new javax.swing.JTextField(); - NodeNameText = new javax.swing.JTextField(); - NodeCancelButton = new javax.swing.JButton(); - NodeApplyButton = new javax.swing.JButton(); - ParamPanel = new javax.swing.JPanel(); - ParamNameLabel = new javax.swing.JLabel(); - ParamIndexLabel = new javax.swing.JLabel(); - ParamTypeLabel = new javax.swing.JLabel(); - ParamUnitLabel = new javax.swing.JLabel(); - ParamPruningLabel = new javax.swing.JLabel(); - ParamValMomentLabel = new javax.swing.JLabel(); - ParamRTmodLabel = new javax.swing.JLabel(); - ParamLimitsLabel = new javax.swing.JLabel(); - ParamDescriptionLabel = new javax.swing.JLabel(); - ParamNameText = new javax.swing.JTextField(); - ParamIndexText = new javax.swing.JTextField(); - ParamTypeSelection = new javax.swing.JComboBox(); - ParamUnitSelection = new javax.swing.JComboBox(); - ParamPruningText = new javax.swing.JTextField(); - ParamValMomentText = new javax.swing.JTextField(); - ParamLimitsText = new javax.swing.JTextField(); - ParamDescriptionText = new javax.swing.JTextField(); - ParamCancelButton = new javax.swing.JButton(); - ParamApplyButton = new javax.swing.JButton(); - ParamRTModSelection = new javax.swing.JComboBox(); - LogPanel = new javax.swing.JPanel(); - LogTableScrollPane = new javax.swing.JScrollPane(); - LogTable = new javax.swing.JTable(); - LogParamNameLabel = new javax.swing.JLabel(); - LogParamNameText = new javax.swing.JTextField(); - LogParamRecentOnlyCheckbox = new javax.swing.JCheckBox(); - LogParamEndTimeLabel = new javax.swing.JLabel(); - LogParamStartTimeLabel = new javax.swing.JLabel(); - LogParamStartTimeText = new javax.swing.JTextField(); - LogParamEndTimeText = new javax.swing.JTextField(); - logParamApplyButton = new javax.swing.JButton(); - logParamCancelButton = new javax.swing.JButton(); - ControlPanel = new javax.swing.JPanel(); - CtrlInstButton = new javax.swing.JButton(); - CtrlDeleteButton = new javax.swing.JButton(); - CtrlCopyButton = new javax.swing.JButton(); - jComboBox1 = new javax.swing.JComboBox(); - CtrlChangeTreeStateLabel = new javax.swing.JLabel(); - infoPanel = new javax.swing.JPanel(); - SelectedInputLabel = new javax.swing.JLabel(); - SelectedTreeLabel = new javax.swing.JLabel(); - selectedTreeTextField = new javax.swing.JTextField(); - jMenuBar1 = new javax.swing.JMenuBar(); - FileMenu = new javax.swing.JMenu(); - FileMenuExit = new javax.swing.JMenuItem(); - SourceMenu = new javax.swing.JMenu(); - SourceMenuInputFile = new javax.swing.JRadioButtonMenuItem(); - SourceMenuInputOTDB = new javax.swing.JRadioButtonMenuItem(); - SettingsMenu = new javax.swing.JMenu(); - SettingsMenuRMISettings = new javax.swing.JMenuItem(); - SettingsMenuDebugSetting = new javax.swing.JRadioButtonMenuItem(); - - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - setMaximizedBounds(new java.awt.Rectangle(0, 0, 1280, 1024)); - setName("mainFrame"); - MainPane.setMinimumSize(new java.awt.Dimension(750, 500)); - MainPane.setPreferredSize(new java.awt.Dimension(750, 500)); - MainPane.addChangeListener(new javax.swing.event.ChangeListener() { - public void stateChanged(javax.swing.event.ChangeEvent evt) { - MainPaneStateChanged(evt); - } - }); - - TreePanel.setLayout(new java.awt.BorderLayout()); - - TreePanel.setToolTipText("Search on one or more of the given constraints"); - TreePanel.setMinimumSize(new java.awt.Dimension(700, 475)); - TreePanel.setPreferredSize(new java.awt.Dimension(700, 475)); - TreeTableScrollPane.setMinimumSize(new java.awt.Dimension(750, 22)); - TreeTableScrollPane.setPreferredSize(new java.awt.Dimension(750, 403)); - TreeTable.setModel(new javax.swing.table.DefaultTableModel( - new Object [][] { - - }, - new String [] { - "TreeID", "Creator", "Creation Date", "Class", "Type", "State", "MomID", "Campaign", "Start Time", "Stop Time" - } - ) { - Class[] types = new Class [] { - java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class - }; - boolean[] canEdit = new boolean [] { - false, false, false, false, false, false, false, false, false, false - }; - - public Class getColumnClass(int columnIndex) { - return types [columnIndex]; - } - - public boolean isCellEditable(int rowIndex, int columnIndex) { - return canEdit [columnIndex]; - } - }); - TreeTableScrollPane.add(TreeTable); - TreeTable.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent evt) { - TreeTableMouseClicked(evt); - } - }); - - TreeTableScrollPane.setViewportView(TreeTable); - - TreePanel.add(TreeTableScrollPane, java.awt.BorderLayout.CENTER); - - TreeSelectButton.setText("Select"); - TreeSelectButton.setToolTipText("Select the highlighted Tree to work with"); - TreeSelectButton.setEnabled(false); - TreeSelectButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - TreeSelectButtonActionPerformed(evt); - } - }); - - TreePanel.add(TreeSelectButton, java.awt.BorderLayout.SOUTH); - - MainPane.addTab("TreeList", null, TreePanel, "change tree search"); - - BrowsePanel.setLayout(new java.awt.BorderLayout()); - - BrowsePanel.setMinimumSize(new java.awt.Dimension(750, 475)); - BrowsePanel.setPreferredSize(new java.awt.Dimension(750, 475)); - VICTree.setAutoscrolls(true); - VICTree.setMinimumSize(new java.awt.Dimension(25, 72)); - VICTree.setShowsRootHandles(true); - VICTree.setToggleClickCount(1); - VICTree.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() { - public void valueChanged(javax.swing.event.TreeSelectionEvent evt) { - TreeSelectionListener(evt); - } - }); - - treeScrollPane.setViewportView(VICTree); - - BrowsePanel.add(treeScrollPane, java.awt.BorderLayout.WEST); - - treeTabbedPane.addChangeListener(new javax.swing.event.ChangeListener() { - public void stateChanged(javax.swing.event.ChangeEvent evt) { - treeTabbedPaneStateChanged(evt); - } - }); - - NodePanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); - - NodeNameLabel.setText("Name"); - NodePanel.add(NodeNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, -1)); - - NodeIndexLabel.setText("Index"); - NodePanel.add(NodeIndexLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 35, -1, -1)); - - NodeInstancesLabel.setText("Instances"); - NodePanel.add(NodeInstancesLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 60, -1, -1)); - - NodeLimitsLabel.setText("Limits"); - NodePanel.add(NodeLimitsLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 85, -1, -1)); - - NodeDescriptionLabel.setText("Description"); - NodePanel.add(NodeDescriptionLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 110, -1, -1)); - - NodeIndexText.setText("None"); - NodeIndexText.setEnabled(false); - NodeIndexText.setMaximumSize(new java.awt.Dimension(200, 19)); - NodeIndexText.setMinimumSize(new java.awt.Dimension(200, 19)); - NodeIndexText.setPreferredSize(new java.awt.Dimension(200, 19)); - NodePanel.add(NodeIndexText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 35, 200, -1)); - - NodeInstancesText.setText("-1"); - NodeInstancesText.setToolTipText("Number of Instances for this Node "); - NodeInstancesText.setEnabled(false); - NodeInstancesText.setMaximumSize(new java.awt.Dimension(200, 19)); - NodeInstancesText.setMinimumSize(new java.awt.Dimension(200, 19)); - NodeInstancesText.setPreferredSize(new java.awt.Dimension(200, 19)); - NodeInstancesText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - NodeInstancesTextKeyTyped(evt); - } - }); - - NodePanel.add(NodeInstancesText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 60, 200, -1)); - - NodeDescriptionText.setText("None"); - NodeDescriptionText.setToolTipText("Description for this Node"); - NodeDescriptionText.setEnabled(false); - NodeDescriptionText.setMaximumSize(new java.awt.Dimension(440, 19)); - NodeDescriptionText.setMinimumSize(new java.awt.Dimension(440, 19)); - NodeDescriptionText.setPreferredSize(new java.awt.Dimension(440, 19)); - NodeDescriptionText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - NodeDescriptionTextKeyTyped(evt); - } - }); - - NodePanel.add(NodeDescriptionText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 110, 440, -1)); - - NodeLimitsText.setText("None"); - NodeLimitsText.setToolTipText("Limits for this Node"); - NodeLimitsText.setEnabled(false); - NodeLimitsText.setMaximumSize(new java.awt.Dimension(200, 19)); - NodeLimitsText.setMinimumSize(new java.awt.Dimension(200, 19)); - NodeLimitsText.setPreferredSize(new java.awt.Dimension(200, 19)); - NodeLimitsText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - NodeLimitsTextKeyTyped(evt); - } - }); - - NodePanel.add(NodeLimitsText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 85, 200, -1)); - - NodeNameText.setText("None"); - NodeNameText.setToolTipText("Name for this Node"); - NodeNameText.setEnabled(false); - NodeNameText.setMaximumSize(new java.awt.Dimension(440, 19)); - NodeNameText.setMinimumSize(new java.awt.Dimension(440, 19)); - NodeNameText.setPreferredSize(new java.awt.Dimension(440, 19)); - NodePanel.add(NodeNameText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 10, 440, -1)); - - NodeCancelButton.setText("Cancel"); - NodeCancelButton.setEnabled(false); - NodeCancelButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - NodeCancelButtonActionPerformed(evt); - } - }); - - NodePanel.add(NodeCancelButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 250, -1, -1)); - - NodeApplyButton.setText("Apply"); - NodeApplyButton.setEnabled(false); - NodeApplyButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - NodeApplyButtonActionPerformed(evt); - } - }); - - NodePanel.add(NodeApplyButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 250, 70, -1)); - - treeTabbedPane.addTab("Node", null, NodePanel, "Node Page"); - - ParamPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); - - ParamPanel.setEnabled(false); - ParamNameLabel.setText("Name"); - ParamPanel.add(ParamNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, -1)); - - ParamIndexLabel.setText("Index"); - ParamPanel.add(ParamIndexLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 35, -1, -1)); - - ParamTypeLabel.setText("Type"); - ParamPanel.add(ParamTypeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 60, -1, -1)); - - ParamUnitLabel.setText("Unit"); - ParamPanel.add(ParamUnitLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 85, -1, -1)); - - ParamPruningLabel.setText("Pruning"); - ParamPanel.add(ParamPruningLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 110, -1, -1)); - - ParamValMomentLabel.setText("ValMoment"); - ParamValMomentLabel.setVerifyInputWhenFocusTarget(false); - ParamPanel.add(ParamValMomentLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 135, -1, -1)); - - ParamRTmodLabel.setText("RTmod"); - ParamPanel.add(ParamRTmodLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 160, -1, -1)); - - ParamLimitsLabel.setText("(Default) Value"); - ParamPanel.add(ParamLimitsLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 185, -1, -1)); - - ParamDescriptionLabel.setText("Description"); - ParamPanel.add(ParamDescriptionLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 210, -1, -1)); - - ParamNameText.setText("None"); - ParamNameText.setToolTipText("Name for this Parameter"); - ParamNameText.setEnabled(false); - ParamNameText.setMaximumSize(new java.awt.Dimension(440, 19)); - ParamNameText.setMinimumSize(new java.awt.Dimension(440, 19)); - ParamNameText.setPreferredSize(new java.awt.Dimension(440, 19)); - ParamPanel.add(ParamNameText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 10, 440, -1)); - - ParamIndexText.setText("None"); - ParamIndexText.setToolTipText("Index from this Parameter"); - ParamIndexText.setEnabled(false); - ParamIndexText.setMaximumSize(new java.awt.Dimension(200, 19)); - ParamIndexText.setMinimumSize(new java.awt.Dimension(200, 19)); - ParamIndexText.setPreferredSize(new java.awt.Dimension(200, 19)); - ParamPanel.add(ParamIndexText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 35, 200, -1)); - - ParamTypeSelection.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "node", "bool", "int", "long", "flt", "dbl", "icpx", "lcpx", "fcpx", "dcpx", "text", "bin", "uint" })); - ParamTypeSelection.setToolTipText("Type of this Parameter"); - ParamTypeSelection.setEnabled(false); - ParamTypeSelection.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent evt) { - ParamTypeSelectionMouseClicked(evt); - } - }); - - ParamPanel.add(ParamTypeSelection, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 60, -1, -1)); - - ParamUnitSelection.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-", "Ampere", "m/s", "dB", "time4", "time6", "RAM", "GFLOP", "MB/s", "Mhz" })); - ParamUnitSelection.setToolTipText("Unit for this Parameter"); - ParamUnitSelection.setEnabled(false); - ParamUnitSelection.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent evt) { - ParamUnitSelectionMouseClicked(evt); - } - }); - - ParamPanel.add(ParamUnitSelection, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 85, -1, -1)); - - ParamPruningText.setText("-1"); - ParamPruningText.setToolTipText("Pruning for this Parameter"); - ParamPruningText.setEnabled(false); - ParamPruningText.setMaximumSize(new java.awt.Dimension(200, 19)); - ParamPruningText.setMinimumSize(new java.awt.Dimension(200, 19)); - ParamPruningText.setPreferredSize(new java.awt.Dimension(200, 19)); - ParamPruningText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - ParamPruningTextKeyTyped(evt); - } - }); - - ParamPanel.add(ParamPruningText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 110, 200, -1)); - - ParamValMomentText.setText("-1"); - ParamValMomentText.setToolTipText("Valmoment for the Parameter"); - ParamValMomentText.setEnabled(false); - ParamValMomentText.setMaximumSize(new java.awt.Dimension(200, 19)); - ParamValMomentText.setMinimumSize(new java.awt.Dimension(200, 19)); - ParamValMomentText.setPreferredSize(new java.awt.Dimension(200, 19)); - ParamValMomentText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - ParamValMomentTextKeyTyped(evt); - } - }); - - ParamPanel.add(ParamValMomentText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 135, 200, -1)); - - ParamLimitsText.setText("None"); - ParamLimitsText.setToolTipText("Limits for this Parameter"); - ParamLimitsText.setEnabled(false); - ParamLimitsText.setMaximumSize(new java.awt.Dimension(200, 19)); - ParamLimitsText.setMinimumSize(new java.awt.Dimension(200, 19)); - ParamLimitsText.setPreferredSize(new java.awt.Dimension(200, 19)); - ParamLimitsText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - ParamLimitsTextKeyTyped(evt); - } - }); - - ParamPanel.add(ParamLimitsText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 185, 200, -1)); - - ParamDescriptionText.setText("None"); - ParamDescriptionText.setToolTipText("Description for this Parameter"); - ParamDescriptionText.setEnabled(false); - ParamDescriptionText.setMaximumSize(new java.awt.Dimension(440, 19)); - ParamDescriptionText.setMinimumSize(new java.awt.Dimension(440, 19)); - ParamDescriptionText.setPreferredSize(new java.awt.Dimension(440, 19)); - ParamDescriptionText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - ParamDescriptionTextKeyTyped(evt); - } - }); - - ParamPanel.add(ParamDescriptionText, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 210, 440, -1)); - - ParamCancelButton.setText("Cancel"); - ParamCancelButton.setEnabled(false); - ParamCancelButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - ParamCancelButtonActionPerformed(evt); - } - }); - - ParamPanel.add(ParamCancelButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 250, -1, -1)); - - ParamApplyButton.setText("Apply"); - ParamApplyButton.setEnabled(false); - ParamApplyButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - ParamApplyButtonActionPerformed(evt); - } - }); - - ParamPanel.add(ParamApplyButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 250, -1, -1)); - - ParamRTModSelection.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "False", "True" })); - ParamRTModSelection.setToolTipText("RunTime Modification for this Parameter"); - ParamRTModSelection.setEnabled(false); - ParamRTModSelection.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent evt) { - ParamRTModSelectionMouseClicked(evt); - } - }); - - ParamPanel.add(ParamRTModSelection, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 160, -1, -1)); - - treeTabbedPane.addTab("Param", null, ParamPanel, "Param Page"); - - LogPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); - - LogTableScrollPane.setPreferredSize(new java.awt.Dimension(453, 350)); - LogTable.setModel(new javax.swing.table.DefaultTableModel( - new Object [][] { - - }, - new String [] { - "ParamName", "Value", "TimeStamp" - } - ) { - Class[] types = new Class [] { - java.lang.String.class, java.lang.String.class, java.lang.String.class - }; - boolean[] canEdit = new boolean [] { - false, false, false - }; - - public Class getColumnClass(int columnIndex) { - return types [columnIndex]; - } - - public boolean isCellEditable(int rowIndex, int columnIndex) { - return canEdit [columnIndex]; - } - }); - LogTable.setAutoscrolls(false); - LogTable.setEnabled(false); - LogTableScrollPane.add(LogTable); - LogTableScrollPane.setViewportView(LogTable); - - LogPanel.add(LogTableScrollPane, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 796, 350)); - - LogParamNameLabel.setText("ParamName"); - LogPanel.add(LogParamNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 370, -1, -1)); - - LogParamNameText.setText("None"); - LogParamNameText.setEnabled(false); - LogPanel.add(LogParamNameText, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 370, 430, -1)); - - LogParamRecentOnlyCheckbox.setText("Most Recent Only"); - LogParamRecentOnlyCheckbox.setToolTipText("Select to get only the most recent log val"); - LogParamRecentOnlyCheckbox.setEnabled(false); - LogParamRecentOnlyCheckbox.addMouseListener(new java.awt.event.MouseAdapter() { - public void mouseClicked(java.awt.event.MouseEvent evt) { - LogParamRecentOnlyCheckboxMouseClicked(evt); - } - }); - - LogPanel.add(LogParamRecentOnlyCheckbox, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 400, -1, -1)); - - LogParamEndTimeLabel.setText("EndTime"); - LogPanel.add(LogParamEndTimeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 410, -1, -1)); - - LogParamStartTimeLabel.setText("StartTime"); - LogPanel.add(LogParamStartTimeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 390, -1, -1)); - - LogParamStartTimeText.setText("2005-01-01 00:00:00.000"); - LogParamStartTimeText.setToolTipText("Give Start date/time for logging"); - LogParamStartTimeText.setEnabled(false); - LogParamStartTimeText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - LogParamStartTimeTextKeyTyped(evt); - } - }); - - LogPanel.add(LogParamStartTimeText, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 390, 180, -1)); - - LogParamEndTimeText.setText("2005-12-31 59:59:59.000"); - LogParamEndTimeText.setToolTipText("Give end date/time for log search"); - LogParamEndTimeText.setEnabled(false); - LogParamEndTimeText.addKeyListener(new java.awt.event.KeyAdapter() { - public void keyTyped(java.awt.event.KeyEvent evt) { - LogParamEndTimeTextKeyTyped(evt); - } - }); - - LogPanel.add(LogParamEndTimeText, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 410, 180, -1)); - - logParamApplyButton.setText("Apply"); - logParamApplyButton.setToolTipText("Apply changes to logform"); - logParamApplyButton.setEnabled(false); - logParamApplyButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - logParamApplyButtonActionPerformed(evt); - } - }); - - LogPanel.add(logParamApplyButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 440, -1, -1)); - - logParamCancelButton.setText("Cancel"); - logParamCancelButton.setToolTipText("restore defaults"); - logParamCancelButton.setEnabled(false); - logParamCancelButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - logParamCancelButtonActionPerformed(evt); - } - }); - - LogPanel.add(logParamCancelButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 440, -1, -1)); - - treeTabbedPane.addTab("Log", null, LogPanel, "Log Page"); - - BrowsePanel.add(treeTabbedPane, java.awt.BorderLayout.CENTER); - - MainPane.addTab("Browse", null, BrowsePanel, "Treeview"); - - ControlPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); - - ControlPanel.setMinimumSize(new java.awt.Dimension(750, 475)); - ControlPanel.setPreferredSize(new java.awt.Dimension(700, 475)); - CtrlInstButton.setText("Instanciate Tree"); - CtrlInstButton.setToolTipText("Make an instantiated tree from a template"); - CtrlInstButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - CtrlInstButtonActionPerformed(evt); - } - }); - - ControlPanel.add(CtrlInstButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 50, -1, -1)); - - CtrlDeleteButton.setText("Delete"); - CtrlDeleteButton.setEnabled(false); - CtrlDeleteButton.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - CtrlDeleteButtonActionPerformed(evt); - } - }); - - ControlPanel.add(CtrlDeleteButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 90, -1, -1)); - - CtrlCopyButton.setText("Copy"); - CtrlCopyButton.setEnabled(false); - ControlPanel.add(CtrlCopyButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 130, -1, -1)); - - jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "idle", "being specified", "specified", "scheduled", "queued", "active", "finished", "aborted", "obsolete" })); - jComboBox1.setEnabled(false); - jComboBox1.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jComboBox1ActionPerformed(evt); - } - }); - - ControlPanel.add(jComboBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 50, 160, -1)); - - CtrlChangeTreeStateLabel.setText("changeTreeState"); - ControlPanel.add(CtrlChangeTreeStateLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 30, 130, 20)); - - MainPane.addTab("Control", null, ControlPanel, "ControlPanel"); - - getContentPane().add(MainPane, java.awt.BorderLayout.CENTER); - MainPane.getAccessibleContext().setAccessibleName(""); - - infoPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); - - infoPanel.setMinimumSize(new java.awt.Dimension(750, 29)); - infoPanel.setPreferredSize(new java.awt.Dimension(750, 29)); - SelectedInputLabel.setText("Input from: None"); - infoPanel.add(SelectedInputLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, -1, -1)); - - SelectedTreeLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); - SelectedTreeLabel.setText("SelectedTree"); - infoPanel.add(SelectedTreeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 10, -1, -1)); - - selectedTreeTextField.setColumns(25); - selectedTreeTextField.setEditable(false); - selectedTreeTextField.setText("None"); - selectedTreeTextField.setOpaque(false); - infoPanel.add(selectedTreeTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 10, 350, -1)); - - getContentPane().add(infoPanel, java.awt.BorderLayout.SOUTH); - - jMenuBar1.setMinimumSize(new java.awt.Dimension(750, 19)); - jMenuBar1.setPreferredSize(new java.awt.Dimension(750, 19)); - FileMenu.setToolTipText("File Menu"); - FileMenu.setLabel("File"); - FileMenuExit.setLabel("Exit"); - FileMenuExit.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - FileMenuExitActionPerformed(evt); - } - }); - - FileMenu.add(FileMenuExit); - - jMenuBar1.add(FileMenu); - - SourceMenu.setText("Source"); - SourceMenu.setToolTipText("Source selection Menu"); - SourceMenuInputFile.setSelected(true); - SourceMenuInputFile.setText("Input from File"); - SourceMenuInputFile.setToolTipText("Set input to file"); - SourceMenuInputFile.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - SourceMenuInputFileActionPerformed(evt); - } - }); - - SourceMenu.add(SourceMenuInputFile); - - SourceMenuInputOTDB.setText("Input from OTDB"); - SourceMenuInputOTDB.setToolTipText("Set input to OTDB"); - SourceMenuInputOTDB.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - SourceMenuInputOTDBActionPerformed(evt); - } - }); - - SourceMenu.add(SourceMenuInputOTDB); - - jMenuBar1.add(SourceMenu); - - SettingsMenu.setText("Settings"); - SettingsMenu.setToolTipText("Settings Menu"); - SettingsMenuRMISettings.setText("RMISettings"); - SettingsMenuRMISettings.setToolTipText("set RMI server & database"); - SettingsMenuRMISettings.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - SettingsMenuRMISettingsActionPerformed(evt); - } - }); - - SettingsMenu.add(SettingsMenuRMISettings); - - SettingsMenuDebugSetting.setText("Debug on"); - SettingsMenuDebugSetting.setToolTipText("Set Debug on to get more debug output"); - SettingsMenuDebugSetting.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - SettingsMenuDebugSettingActionPerformed(evt); - } - }); - - SettingsMenu.add(SettingsMenuDebugSetting); - - jMenuBar1.add(SettingsMenu); - - setJMenuBar(jMenuBar1); - - java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); - setBounds((screenSize.width-800)/2, (screenSize.height-627)/2, 800, 627); - } - // </editor-fold>//GEN-END:initComponents - - private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed -// TODO add your handling code here: - }//GEN-LAST:event_jComboBox1ActionPerformed - - private void CtrlInstButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CtrlInstButtonActionPerformed - instanciateTree(SelectedTreeID); - }//GEN-LAST:event_CtrlInstButtonActionPerformed - - private void CtrlDeleteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CtrlDeleteButtonActionPerformed - deleteTree(SelectedTreeID); - }//GEN-LAST:event_CtrlDeleteButtonActionPerformed - - private void MainPaneStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_MainPaneStateChanged - if (MainPane.getSelectedIndex() == 2) { - if (SelectedTreeState=="obsolete") { - CtrlDeleteButton.setEnabled(true); - } else { - CtrlDeleteButton.setEnabled(false); - } - } - }//GEN-LAST:event_MainPaneStateChanged - - private void TreeTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TreeTableMouseClicked - if (evt.getClickCount() == 2) { - selectWorkTree(); - } - }//GEN-LAST:event_TreeTableMouseClicked - - private void ParamRTModSelectionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ParamRTModSelectionMouseClicked - if (!paramButtonsEnabled) setParamButtons(true); - }//GEN-LAST:event_ParamRTModSelectionMouseClicked - - private void ParamUnitSelectionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ParamUnitSelectionMouseClicked - if (!paramButtonsEnabled) setParamButtons(true); - }//GEN-LAST:event_ParamUnitSelectionMouseClicked - - private void ParamTypeSelectionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ParamTypeSelectionMouseClicked - if (!paramButtonsEnabled) setParamButtons(true); - }//GEN-LAST:event_ParamTypeSelectionMouseClicked - - private void LogParamRecentOnlyCheckboxMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_LogParamRecentOnlyCheckboxMouseClicked - if (!logButtonsEnabled) setLogButtons(true); - }//GEN-LAST:event_LogParamRecentOnlyCheckboxMouseClicked - - private void LogParamEndTimeTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_LogParamEndTimeTextKeyTyped - if (!logButtonsEnabled) setLogButtons(true); - }//GEN-LAST:event_LogParamEndTimeTextKeyTyped - - private void LogParamStartTimeTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_LogParamStartTimeTextKeyTyped - if (!logButtonsEnabled) setLogButtons(true); - }//GEN-LAST:event_LogParamStartTimeTextKeyTyped - - private void treeTabbedPaneStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_treeTabbedPaneStateChanged - if (treeTabbedPane.getSelectedIndex() == 0) { - itsTreeTabbedPaneFocus="NodePanel"; - if (isTreeFilled && SelectedNodeID != -1) { - updateNodePanel(SelectedNodeID); - } - } else if (treeTabbedPane.getSelectedIndex() == 1) { - itsTreeTabbedPaneFocus="ParamPanel"; - if (isTreeFilled && SelectedNodeID != -1) { - updateParamPanel(SelectedNodeID); - } - } else if (treeTabbedPane.getSelectedIndex() == 2) { - itsTreeTabbedPaneFocus="LogPanel"; - if (isTreeFilled && SelectedNodeID != -1) { - updateLogPanel(SelectedNodeID); - } - } - }//GEN-LAST:event_treeTabbedPaneStateChanged - - private void SettingsMenuDebugSettingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SettingsMenuDebugSettingActionPerformed - itsDebugFlag=SettingsMenuDebugSetting.isSelected(); - }//GEN-LAST:event_SettingsMenuDebugSettingActionPerformed - - private void ParamDescriptionTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_ParamDescriptionTextKeyTyped - if (!paramButtonsEnabled) setParamButtons(true); - }//GEN-LAST:event_ParamDescriptionTextKeyTyped - - private void ParamLimitsTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_ParamLimitsTextKeyTyped - if (!paramButtonsEnabled) setParamButtons(true); - }//GEN-LAST:event_ParamLimitsTextKeyTyped - - private void ParamValMomentTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_ParamValMomentTextKeyTyped - if (!paramButtonsEnabled) setParamButtons(true); - }//GEN-LAST:event_ParamValMomentTextKeyTyped - - private void ParamPruningTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_ParamPruningTextKeyTyped - if (!paramButtonsEnabled) setParamButtons(true); - }//GEN-LAST:event_ParamPruningTextKeyTyped - - private void NodeDescriptionTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NodeDescriptionTextKeyTyped - if (!nodeButtonsEnabled) setNodeButtons(true); - }//GEN-LAST:event_NodeDescriptionTextKeyTyped - - private void NodeLimitsTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NodeLimitsTextKeyTyped - if (!nodeButtonsEnabled) setNodeButtons(true); - }//GEN-LAST:event_NodeLimitsTextKeyTyped - - private void NodeInstancesTextKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NodeInstancesTextKeyTyped - if (!nodeButtonsEnabled) setNodeButtons(true); - }//GEN-LAST:event_NodeInstancesTextKeyTyped - - private void logParamApplyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logParamApplyButtonActionPerformed - setLogValues(); - }//GEN-LAST:event_logParamApplyButtonActionPerformed - - private void logParamCancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logParamCancelButtonActionPerformed - LogParamNameText.setText(itsPresentParam.name); - LogParamStartTimeText.setText(itsStartTime); - LogParamEndTimeText.setText(itsEndTime); - LogParamRecentOnlyCheckbox.setSelected(setMostRecent); - }//GEN-LAST:event_logParamCancelButtonActionPerformed - - private void ParamApplyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ParamApplyButtonActionPerformed - setParamValues(); - }//GEN-LAST:event_ParamApplyButtonActionPerformed - - private void ParamCancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ParamCancelButtonActionPerformed - // ParamNameText.setText(aParamName); - // ParamIndexText.setText(aParamIndex); - ParamTypeSelection.setSelectedIndex(aParamType); - ParamUnitSelection.setSelectedIndex(aParamUnit); - ParamPruningText.setText(aParamPruning); - ParamValMomentText.setText(aParamValMoment); - ParamRTModSelection.setSelectedIndex(aParamRTMod); - ParamLimitsText.setText(aParamLimits); - ParamDescriptionText.setText(aParamDescription); - setParamButtons(false); - }//GEN-LAST:event_ParamCancelButtonActionPerformed - - - private void NodeApplyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NodeApplyButtonActionPerformed - setNodeValues(); - }//GEN-LAST:event_NodeApplyButtonActionPerformed - - private void NodeCancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NodeCancelButtonActionPerformed - // NodeNameText.setText(aNodeName); - // NodeIndexText.setText(aNodeIndex); - NodeInstancesText.setText(aNodeInstances); - NodeLimitsText.setText(aNodeLimits); - NodeDescriptionText.setText(aNodeDescription); - setNodeButtons(false); - }//GEN-LAST:event_NodeCancelButtonActionPerformed - - - private void TreeSelectButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TreeSelectButtonActionPerformed - selectWorkTree(); - }//GEN-LAST:event_TreeSelectButtonActionPerformed - - - private void SourceMenuInputOTDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SourceMenuInputOTDBActionPerformed - createTreeList(-1); - }//GEN-LAST:event_SourceMenuInputOTDBActionPerformed - - - - private void SourceMenuInputFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SourceMenuInputFileActionPerformed - itsSelectedTree = "None"; - SelectedInputLabel.setText("Input from: File"); - selectedTreeTextField.setText(itsSelectedTree); - TreeSelectButton.setEnabled(false); - - JFileChooser fc = new JFileChooser(); - int returnVal = fc.showOpenDialog(otbgui.this); - if (returnVal == JFileChooser.APPROVE_OPTION) { - File aFile = fc.getSelectedFile(); - SourceMenuInputOTDB.setSelected(true); - isFile=true; - isOTDB=false; - } else { - JOptionPane.showMessageDialog(null,"You didn't select a file", - "Source selection warning", - JOptionPane.WARNING_MESSAGE); - SourceMenuInputFile.setSelected(false); - } - }//GEN-LAST:event_SourceMenuInputFileActionPerformed - - - - private void SettingsMenuRMISettingsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SettingsMenuRMISettingsActionPerformed - SettingsDialog aSW = new SettingsDialog(); - aSW.setSize(400, 300); - aSW.setVisible(true); - }//GEN-LAST:event_SettingsMenuRMISettingsActionPerformed - - - - - - private void TreeSelectionListener(javax.swing.event.TreeSelectionEvent evt) {//GEN-FIRST:event_TreeSelectionListener - TreePath tp = evt.getNewLeadSelectionPath(); - if (tp != null) { - changeTreeSelection(tp.getLastPathComponent()); - } - }//GEN-LAST:event_TreeSelectionListener - - - - private void FileMenuExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_FileMenuExitActionPerformed - - System.exit(0); - }//GEN-LAST:event_FileMenuExitActionPerformed - - - - /** - - * @param args the command line arguments - - */ - - public static void main(String args[]) { - java.awt.EventQueue.invokeLater(new Runnable() { - public void run() { - new otbgui().setVisible(true); - } - }); - } - - - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JPanel BrowsePanel; - private javax.swing.JPanel ControlPanel; - private javax.swing.JLabel CtrlChangeTreeStateLabel; - private javax.swing.JButton CtrlCopyButton; - private javax.swing.JButton CtrlDeleteButton; - private javax.swing.JButton CtrlInstButton; - private javax.swing.JMenu FileMenu; - private javax.swing.JMenuItem FileMenuExit; - private javax.swing.JPanel LogPanel; - private javax.swing.JLabel LogParamEndTimeLabel; - private javax.swing.JTextField LogParamEndTimeText; - private javax.swing.JLabel LogParamNameLabel; - private javax.swing.JTextField LogParamNameText; - private javax.swing.JCheckBox LogParamRecentOnlyCheckbox; - private javax.swing.JLabel LogParamStartTimeLabel; - private javax.swing.JTextField LogParamStartTimeText; - private javax.swing.JTable LogTable; - private javax.swing.JScrollPane LogTableScrollPane; - private javax.swing.JTabbedPane MainPane; - private javax.swing.JButton NodeApplyButton; - private javax.swing.JButton NodeCancelButton; - private javax.swing.JLabel NodeDescriptionLabel; - private javax.swing.JTextField NodeDescriptionText; - private javax.swing.JLabel NodeIndexLabel; - private javax.swing.JTextField NodeIndexText; - private javax.swing.JLabel NodeInstancesLabel; - private javax.swing.JTextField NodeInstancesText; - private javax.swing.JLabel NodeLimitsLabel; - private javax.swing.JTextField NodeLimitsText; - private javax.swing.JLabel NodeNameLabel; - private javax.swing.JTextField NodeNameText; - private javax.swing.JPanel NodePanel; - private javax.swing.JButton ParamApplyButton; - private javax.swing.JButton ParamCancelButton; - private javax.swing.JLabel ParamDescriptionLabel; - private javax.swing.JTextField ParamDescriptionText; - private javax.swing.JLabel ParamIndexLabel; - private javax.swing.JTextField ParamIndexText; - private javax.swing.JLabel ParamLimitsLabel; - private javax.swing.JTextField ParamLimitsText; - private javax.swing.JLabel ParamNameLabel; - private javax.swing.JTextField ParamNameText; - private javax.swing.JPanel ParamPanel; - private javax.swing.JLabel ParamPruningLabel; - private javax.swing.JTextField ParamPruningText; - private javax.swing.JComboBox ParamRTModSelection; - private javax.swing.JLabel ParamRTmodLabel; - private javax.swing.JLabel ParamTypeLabel; - private javax.swing.JComboBox ParamTypeSelection; - private javax.swing.JLabel ParamUnitLabel; - private javax.swing.JComboBox ParamUnitSelection; - private javax.swing.JLabel ParamValMomentLabel; - private javax.swing.JTextField ParamValMomentText; - private javax.swing.JLabel SelectedInputLabel; - private javax.swing.JLabel SelectedTreeLabel; - private javax.swing.JMenu SettingsMenu; - private javax.swing.JRadioButtonMenuItem SettingsMenuDebugSetting; - private javax.swing.JMenuItem SettingsMenuRMISettings; - private javax.swing.JMenu SourceMenu; - private javax.swing.JRadioButtonMenuItem SourceMenuInputFile; - private javax.swing.JRadioButtonMenuItem SourceMenuInputOTDB; - private javax.swing.JPanel TreePanel; - private javax.swing.JButton TreeSelectButton; - private javax.swing.JTable TreeTable; - private javax.swing.JScrollPane TreeTableScrollPane; - private javax.swing.JTree VICTree; - private javax.swing.JPanel infoPanel; - private javax.swing.JComboBox jComboBox1; - private javax.swing.JMenuBar jMenuBar1; - private javax.swing.JButton logParamApplyButton; - private javax.swing.JButton logParamCancelButton; - private javax.swing.JTextField selectedTreeTextField; - private javax.swing.JScrollPane treeScrollPane; - private javax.swing.JTabbedPane treeTabbedPane; - // End of variables declaration//GEN-END:variables - - private boolean openRemoteConnection(String RMIRegHostName) { - try { - if (itsDebugFlag) System.out.println("openRemoteConnection for "+RMIRegHostName); - - // create a remote object - remoteOTDB = (jOTDBinterface) Naming.lookup (RMIRegHostName); -// Registry remoteRegistry = LocateRegistry.getRegistry(RMIRegHostName.toCharArray()[0]); -// remoteOTDB = (jOTDBinterface) remoteRegistry.lookup (RMIRegistryName); - if (itsDebugFlag) System.out.println (remoteOTDB); - - // do the test - if (itsDebugFlag) System.out.println("Trying to connect to the database"); - assert remoteOTDB.connect() : "Connection failed"; - assert remoteOTDB.isConnected() : "Connnection flag failed"; - - if (itsDebugFlag) System.out.println("Connection succesful!"); - return true; - } - catch (Exception e) - { - System.out.println ("Open Remote Connection via RMI and JNI failed: " + e); - } - return false; - } - - private boolean openRemoteMaintenance(String RMIMaintName) { - try { - if (itsDebugFlag) System.out.println("openRemoteMaintenance for "+RMIMaintName); - - // create a remote object - remoteMaintenance = (jTreeMaintenanceInterface) Naming.lookup (RMIMaintName); -// Registry remoteRegistry = LocateRegistry.getRegistry(RMIMaintName.toCharArray()[0]); -// remoteMaintenance = (jTreeMaintenanceInterface) remoteRegistry.lookup (RMIMaintName); - if (itsDebugFlag) System.out.println (remoteMaintenance); - - if (itsDebugFlag) System.out.println("Connection succesful!"); - return true; - } - catch (Exception e) - { - System.out.println ("Getting Remote Maintenance via RMI and JNI failed: " + e); - } - return false; - } - - - private boolean openRemoteValue(String RMIValName) { - try { - if (itsDebugFlag) System.out.println("OpenRemoteValue for "+RMIValName); - - // create a remote object - remoteValue = (jTreeValueInterface) Naming.lookup (RMIValName); -// Registry remoteRegistry = LocateRegistry.getRegistry(RMIMaintName.toCharArray()[0]); -// remoteValue = (jTreeValueInterface) remoteRegistry.lookup (RMIValName); - if (itsDebugFlag) System.out.println (remoteValue); - - if (itsDebugFlag) System.out.println("Connection succesful!"); - return true; - } - catch (Exception e) - { - System.out.println ("Getting Remote Value via RMI and JNI failed: " + e); - } - return false; - } - - private boolean openRemoteConverter(String RMIConverterName) { - try { - if (itsDebugFlag) System.out.println("openRemoteConverter for "+RMIConverterName); - - // create a remote object\ - remoteTypes = (jConverterInterface) Naming.lookup (RMIConverterName); -// Registry remoteTypes = LocateRegistry.getRegistry(RMIConverterName.toCharArray()[0]); -// remoteValue = (jConverterInterface) remoteRegistry.lookup (RMIConverterName); - if (itsDebugFlag) System.out.println (remoteValue); - - if (itsDebugFlag) System.out.println("Connection succesful!"); - return true; - } - catch (Exception e) - { - System.out.println ("Getting remote Converter via RMI and JNI failed: " + e); - } - return false; - } - - - - private boolean fillTreeTable(int aSelectedTreeID) { - if (itsDebugFlag) System.out.println("fillTreeTable for "+aSelectedTreeID); - - BrowsePanel.setEnabled(false); - LogPanel.setEnabled(false); - - Vector treeList=new Vector(); - - - try { - treeList=remoteOTDB.getTreeList((short)0, (short)0); - if (itsDebugFlag) System.out.println("returned treeList has size: "+treeList.size()); - if (treeList.size() <= 0) { - if (itsDebugFlag) System.out.println("Error:" + remoteOTDB.errorMsg()); - return false; - } else { - if (itsDebugFlag) System.out.println("Collected tree list"); - java.util.Collections.sort(treeList); - } - } - catch (Exception e) - { - System.out.println ("getTreeList via RMI and JNI failed: " + e); - } - - BrowsePanel.setEnabled(true); - LogPanel.setEnabled(true); - // Give our own model to the TreeTable - treeModel tm = new treeModel(remoteOTDB,treeList); - tm.setDebugFlag(itsDebugFlag); - TreeTable.setModel(tm); - TreeTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); - if (aSelectedTreeID >= 0 ) { - for (int i=0; i < tm.getRowCount();i++ ) { - if (((Integer)tm.getValueAt(i, 0)).intValue() == aSelectedTreeID) { - TreeTable.setRowSelectionInterval(i,i); - } - } - } - TreeSelectButton.setEnabled(true); - return true; - } - - private void setParamValues() { - if (itsDebugFlag) System.out.println("setParamValues"); - - // aParamName=ParamNameText.getText(); - // aParamIndex=ParamIndexText.getText(); - boolean hasChanged=false; - if (aParamType != ParamTypeSelection.getSelectedIndex()) { - aParamType=ParamTypeSelection.getSelectedIndex(); - itsPresentParam.type=(short)aParamType; - hasChanged=true; - } - if (aParamUnit != ParamUnitSelection.getSelectedIndex()) { - aParamUnit=ParamUnitSelection.getSelectedIndex(); - itsPresentParam.unit=(short)aParamUnit; - hasChanged=true; - } - if (!aParamPruning.equals(ParamPruningText.getText())) { - aParamPruning=ParamPruningText.getText(); - itsPresentParam.pruning=Integer.valueOf(aParamPruning).shortValue(); - hasChanged=true; - } - if (!aParamValMoment.equals(ParamValMomentText.getText())) { - aParamValMoment=ParamValMomentText.getText(); - itsPresentParam.valMoment=Integer.valueOf(aParamValMoment).shortValue(); - hasChanged=true; - } - if (aParamRTMod != ParamRTModSelection.getSelectedIndex()) { - aParamRTMod=ParamRTModSelection.getSelectedIndex(); - boolean aFlag=false; - if (aParamRTMod==0) { - aFlag=false; - } else { - aFlag=true; - } - itsPresentParam.runtimeMod=aFlag; - hasChanged=true; - } - if (!aParamLimits.equals(ParamLimitsText.getText())) { - aParamLimits=ParamLimitsText.getText(); - itsPresentParam.limits=aParamLimits; - hasChanged=true; - } - - setParamButtons(false); - if (hasChanged) { - if (saveParam(itsPresentParam) ) { - if (itsDebugFlag) System.out.println("Saving Param succeeded."); - } else { - if (itsDebugFlag) System.out.println("Saving Param FAILED."); - } - } - } - - private void setNodeValues() { - if (itsDebugFlag) System.out.println("setNodeValues"); - - boolean hasChanged=false; - // aNodeName=NodeNameText.getText(); - // aNodeIndex=NodeIndexText.getText(); - if (!aNodeInstances.equals(NodeInstancesText.getText())) { - aNodeInstances=NodeInstancesText.getText(); - itsPresentNode.instances=Integer.valueOf(aNodeInstances).shortValue(); - if (itsDebugFlag) System.out.println("Node Instances changed to "+itsPresentNode.instances); - - hasChanged=true; - } - if (!aNodeLimits.equals(NodeLimitsText.getText())) { - aNodeLimits=NodeLimitsText.getText(); - itsPresentNode.limits=aNodeLimits; - if (itsDebugFlag) System.out.println("Node limits changed to "+itsPresentNode.limits); - hasChanged=true; - } - - setNodeButtons(false); - if (hasChanged) { - if (saveNode(itsPresentNode) ) { - if (itsDebugFlag) System.out.println("Saving Node succeeded."); - } else { - if (itsDebugFlag) System.out.println("Saving Node FAILED."); - } - } - } - - private void setLogValues() { - if (itsDebugFlag) System.out.println("setLogValues"); - boolean hasChanged=false; - - if (!itsStartTime.equals(LogParamStartTimeText.getText())) { - itsStartTime=LogParamStartTimeText.getText(); - hasChanged=true; - } - if (!itsEndTime.equals(LogParamEndTimeText.getText())) { - itsEndTime=LogParamEndTimeText.getText(); - hasChanged=true; - } - - if (!LogParamRecentOnlyCheckbox.isSelected() == setMostRecent ) { - setMostRecent=LogParamRecentOnlyCheckbox.isSelected(); - hasChanged=true; - } - // - // refresh the logs following the new settings - setLogButtons(false); - refreshLogPanel(); - - } - - private void setParamButtons(boolean flag) { - if (itsDebugFlag) System.out.println("setParamButtons "+flag); - - // To avoid that saving is available for type hardware and type VHtree trees we - // set flag to false for now - if (!itsSelectedTreeType.equals("VItemplate")) flag=false; - ParamApplyButton.setEnabled(flag); - ParamCancelButton.setEnabled(flag); - paramButtonsEnabled=flag; - } - - private void setNodeButtons(boolean flag) { - if (itsDebugFlag) System.out.println("setNodeButtons "+flag); - // To avoid that saving is available for type hardware and type VHtree trees we - // set flag to false for now - if (!itsSelectedTreeType.equals("VItemplate")) flag=false; - NodeApplyButton.setEnabled(flag); - NodeCancelButton.setEnabled(flag); - nodeButtonsEnabled=flag; - } - - private void setLogButtons(boolean flag) { - if (itsDebugFlag) System.out.println("setLogButtons "+flag); - logParamApplyButton.setEnabled(flag); - logParamCancelButton.setEnabled(flag); - logButtonsEnabled=flag; - } - - private boolean getTreeList() { - if (itsDebugFlag) System.out.println("getTreeList"); - boolean aFlag=false; - if (isTreeFilled){ - clearTree(); - } - - String aRMS="rmi://"+RMIServerName+":"+RMIServerPort+"/"+RMIMaintenanceName; - String aRMV="rmi://"+RMIServerName+":"+RMIServerPort+"/"+RMIValName; - String aRMC="rmi://"+RMIServerName+":"+RMIServerPort+"/"+RMIConverterName; - - if (openRemoteMaintenance(aRMS) && openRemoteValue(aRMV) && openRemoteConverter(aRMC)) { - if (fillTreeList()) { - if (itsDebugFlag) System.out.println("Tree should be filled now"); - aFlag=true; - } else { - if (itsDebugFlag) System.out.println("Error in filling the treeList"); - aFlag=false; - } - } - - isTreeFilled=true; - return aFlag; - } - - private boolean fillTreeList() { - if (itsDebugFlag) System.out.println("fillTreeList"); - - boolean aFlag=false; - try { - if (itsDebugFlag) System.out.println("Trying to get the topnode of the tree:"+ SelectedTreeID); - jOTDBnode topNode = remoteMaintenance.getTopNode (SelectedTreeID.intValue ()); - aFlag=true; - - // Check should be possible...... - - - if (itsDebugFlag) System.out.println ("TopNode name: "+topNode.name); - if (itsDebugFlag) System.out.println(topNode.treeID()+" "+topNode.nodeID()+" "+topNode.parentID()); - - //set rootlevel for tree and keep parentID - String [] aS=topNode.name.split("[.]"); - String aName=topNode.nodeID()+":"+aS[aS.length-1]; - root.setUserObject(new DefaultMutableTreeNode(aName)); - - addChildren(root,topNode); - - // set initialselection to topnode - TreePath aTreePath = new TreePath(root.getPath()); - VICTree.scrollPathToVisible(aTreePath); - VICTree.expandPath(aTreePath); - VICTree.setSelectionPath(aTreePath); - VICTree.updateUI(); - // showNodeList(nodeList); - } catch (Exception e){ - System.out.println ("getTopNode via RMI and JNI failed: " + e); - aFlag=false; - } - return aFlag; - } - - private void addChildren(DefaultMutableTreeNode root,jOTDBnode aTopNode){ - if (itsDebugFlag) System.out.println("addChildren"); - - if (itsDebugFlag) System.out.println("Trying to get a node list with depth=1"); - try { - - Vector aNodeList = remoteMaintenance.getItemList (SelectedTreeID.intValue (), aTopNode.nodeID(), 1); - if (itsDebugFlag) System.out.println("TreeId NodeID ParentID"); - for (int k=0; k< aNodeList.size();k++) { - jOTDBnode aNewNode = (jOTDBnode)aNodeList.elementAt(k); - if (itsDebugFlag) System.out.println(aNewNode.treeID()+" "+aNewNode.nodeID()+" "+aNewNode.parentID()); - String [] aS=aNewNode.name.split("[.]"); - String aName=aNewNode.nodeID()+":"+aS[aS.length-1]; - aNode= new DefaultMutableTreeNode(aName); - root.add(aNode); - addChildren(aNode, aNewNode); - } - } catch (Exception e){ - System.out.println ("Maintenance.getItemList via RMI and JNI failed: " + e); - } - } - - private void clearAll() { - if (itsDebugFlag) System.out.println("clearAll"); - - itsPresentNode=null; - itsPresentParam=null; - SelectedNodeID=-1; - SelectedTreeID=-1; - SelectedTreeState=""; - enableParamPanel(false); - enableNodePanel(false); - enableLogPanel(false); - clearParamPanel(); - clearNodePanel(); - clearLogPanel(); - clearTree(); - } - - private void clearTree() { - if (itsDebugFlag) System.out.println("clearTree"); - root.removeAllChildren(); - root.setUserObject(new DefaultMutableTreeNode()); - isTreeFilled=false; - itsSelectedTree="None"; - itsSelectedTreeType=""; - selectedTreeTextField.setText("None"); - VICTree.updateUI(); - } - - private void changeTreeSelection(Object aO) { - if (itsDebugFlag) System.out.println("changeTreeSelection"); - - String aS = aO.toString(); - changeSelection(aS); - } - - private void changeSelection(String aNodeName){ - if (itsDebugFlag) System.out.println("changeSelection for"+aNodeName); - boolean found = false; - - // No reason to do this when Tree is not filled yet anyway - if (! isTreeFilled) return; - - - // strip nodeID from Name - String [] aS=aNodeName.split("[:]"); - int aNodeID=Integer.parseInt(aS[0]); - if (SelectedNodeID == -1) { - enableNodePanel(true); - enableParamPanel(true); - } - SelectedNodeID=aNodeID; - //find arrayindex that contains this nodeName - Enumeration e = ((DefaultMutableTreeNode)VICTree.getModel().getRoot()).breadthFirstEnumeration(); - - DefaultMutableTreeNode aFoundNode; - boolean personDone=false; - while (e.hasMoreElements()) { - aFoundNode=(DefaultMutableTreeNode)e.nextElement(); - if (aFoundNode.getUserObject().toString().equals(aNodeName)) { - setPresentNode(aNodeID); - if (itsPresentNode.leaf) { - treeTabbedPane.setSelectedIndex(1); - itsTreeTabbedPaneFocus="ParamPanel"; - updateParamPanel(aNodeID); - clearNodePanel(); - } else { - treeTabbedPane.setSelectedIndex(0); - itsTreeTabbedPaneFocus="NodePanel"; - updateNodePanel(aNodeID); - clearParamPanel(); - } - found = true; - TreePath aTreePath = new TreePath(aFoundNode.getPath()); - VICTree.scrollPathToVisible(aTreePath); - VICTree.expandPath(aTreePath); - VICTree.setSelectionPath(aTreePath); - } - } - } - - private void setPresentNode(int aNodeID) { - if (itsDebugFlag) System.out.println("setPresentNode to "+aNodeID + " for TreeID: "+ SelectedTreeID); - - try { - itsPresentNode=remoteMaintenance.getNode(SelectedTreeID, aNodeID); - } catch (Exception e) { - System.out.println ("Maintenance.getNode via RMI and JNI failed: " + e); - } - } - - - private void updateNodePanel(int aNodeID) { - if (itsDebugFlag) System.out.println("updateNodePanel"+aNodeID); - - setPresentNode(aNodeID); - NodeNameText.setText(itsPresentNode.name); - NodeIndexText.setText(Short.toString(itsPresentNode.index)); - NodeInstancesText.setText(Short.toString(itsPresentNode.instances)); - NodeLimitsText.setText(itsPresentNode.limits); - NodeDescriptionText.setText(itsPresentNode.description); - if (!itsPresentNode.leaf) { - aNodeName=NodeNameText.getText(); - aNodeIndex=NodeIndexText.getText(); - aNodeLeaf=itsPresentNode.leaf; - aNodeInstances=NodeInstancesText.getText(); - aNodeLimits=NodeLimitsText.getText(); - aNodeDescription=NodeDescriptionText.getText(); - enableNodePanel(true); - } else { - enableNodePanel(false); - } - } - - private void updateParamPanel(int aNodeID) { - if (itsDebugFlag) System.out.println("updateParamPanel. nodeiD: "+aNodeID); - try { - setPresentNode(aNodeID); - if (itsDebugFlag) System.out.println("Present Node: "+itsPresentNode.name); - // Check if valid parameter found - jOTDBparam aP=remoteMaintenance.getParam(SelectedTreeID, itsPresentNode.paramDefID()); - if (itsDebugFlag) System.out.println("Input TreeID: "+SelectedTreeID); - if (itsDebugFlag) System.out.println("Input NodeID: "+aNodeID); - if (itsDebugFlag) System.out.println("pNode NodeID: "+itsPresentNode.nodeID()); - if (itsDebugFlag) System.out.println("pNode NodeParamDefID: "+itsPresentNode.paramDefID()); - - if (itsDebugFlag) printParam(aP); - - if (itsPresentNode.leaf && aP.paramID() > 0) { - itsPresentParam=aP; - - - ParamNameText.setText(itsPresentParam.name); - ParamIndexText.setText(Short.toString(itsPresentParam.index)); - ParamTypeSelection.setSelectedIndex(getTypeIndex(itsPresentParam.type)); - ParamUnitSelection.setSelectedIndex(itsPresentParam.unit); - ParamPruningText.setText(Short.toString(itsPresentParam.pruning)); - ParamValMomentText.setText(Short.toString(itsPresentParam.valMoment)); - int i; - if (!itsPresentParam.runtimeMod) { - i=0; - } else { - i=1; - } - ParamRTModSelection.setSelectedIndex(i); - ParamLimitsText.setText(itsPresentParam.limits); - ParamDescriptionText.setText(itsPresentParam.description); - aParamName=ParamNameText.getText(); - aParamIndex=ParamIndexText.getText(); - aParamType=ParamTypeSelection.getSelectedIndex(); - aParamUnit=ParamUnitSelection.getSelectedIndex(); - aParamPruning=ParamPruningText.getText(); - aParamValMoment=ParamValMomentText.getText(); - aParamRTMod=ParamRTModSelection.getSelectedIndex(); - aParamLimits=ParamLimitsText.getText(); - aParamDescription=ParamDescriptionText.getText(); - enableParamPanel(true); - } else { - enableParamPanel(false); - } - } catch (Exception e) { - System.out.println ("maintenance.getParam via RMI and JNI failed: " + e); - } - } - - private int getTypeIndex(Short aType) { - if (itsDebugFlag) System.out.println("getTypeIndex for: "+aType); - - try { - if (itsDebugFlag) System.out.println("Type in: " + aType); - - for (int i=0;i<ParamTypeSelection.getItemCount();i++) { - if (itsDebugFlag) System.out.println("List nr: " + i + " : "+ ParamTypeSelection.getItemAt(i)); - if (itsDebugFlag) System.out.println("Remote Type found: "+remoteTypes.getParamType(aType)); - if (remoteTypes.getParamType(aType).equals(ParamTypeSelection.getItemAt(i))) return i; - } - } catch (Exception e) { - System.out.println ("Remote Conversion via RMI and JNI failed: " + e); - } - return -1; - } - - private void updateLogPanel(int aNodeID) { - if (itsDebugFlag) System.out.println("updateLogPanel NodeID: "+aNodeID); - - try { - - setPresentNode(aNodeID); - jOTDBparam aP=remoteMaintenance.getParam(SelectedTreeID, itsPresentNode.paramDefID()); - - refreshLogPanel(); - // Check if param is valid - if (itsPresentNode.leaf && aP.paramID() > 0) { - itsPresentParam=aP; - - enableLogPanel(true); - } else { - enableLogPanel(false); - } - - } catch (Exception e) { - System.out.println ("Maintenance.getParam OTDB via RMI and JNI failed: " + e); - } - } - - private boolean saveParam(jOTDBparam aP) { - if (itsDebugFlag) System.out.println("saveParam"); - - boolean aFlag=false; - try { - if (itsDebugFlag) System.out.println("Saving Param:"); - if (itsDebugFlag) printParam(aP); - - if (aP.nodeID() > 0) { - aFlag=remoteMaintenance.saveParam(aP); - } else { - if (itsDebugFlag) System.out.println("Invalid parameter. NOT saved!"); - } - - - } catch (Exception e) { - System.out.println ("Maintenance.saveParam via RMI and JNI failed: " + e); - } - return aFlag; - } - - private boolean saveNode(jOTDBnode aN) { - if (itsDebugFlag) System.out.println("saveNode"); - - boolean aFlag=false; - try { - if (itsDebugFlag) System.out.println("Saving Node:"); - if (itsDebugFlag) printNode(aN); - - if(aN.nodeID() > 0) { - aFlag=remoteMaintenance.saveNode(aN); - } else { - System.out.println("Invalid node. NOT saved!"); - } - - } catch (Exception e) { - System.out.println ("Maintenance.saveNode via RMI and JNI failed: " + e); - } - return aFlag; - } - - private void clearParamPanel() { - if (itsDebugFlag) System.out.println("clearParamPanel"); - - aParamName = "None"; - aParamIndex = "-1"; - aParamType = 0; - aParamUnit = 0; - aParamPruning = "-1"; - aParamValMoment = "-1"; - aParamRTMod = 0; - aParamLimits = "None"; - aParamDescription = "None"; - ParamNameText.setText(aParamName); - ParamIndexText.setText(aParamIndex); - ParamTypeSelection.setSelectedIndex(aParamType); - ParamUnitSelection.setSelectedIndex(aParamUnit); - ParamPruningText.setText(aParamPruning); - ParamValMomentText.setText(aParamValMoment); - ParamRTModSelection.setSelectedIndex(aParamRTMod); - ParamLimitsText.setText(aParamLimits); - ParamDescriptionText.setText(aParamDescription); - } - - private void clearNodePanel() { - if (itsDebugFlag) System.out.println("clearNodePanel"); - - aNodeName = "None"; - aNodeIndex = "-1"; - aNodeInstances = "-1"; - aNodeLimits = "None"; - aNodeDescription = "None"; - NodeNameText.setText(aNodeName); - NodeIndexText.setText(aNodeIndex); - NodeInstancesText.setText(aNodeInstances); - NodeLimitsText.setText(aNodeLimits); - NodeDescriptionText.setText(aNodeDescription); - } - - private void clearLogPanel() { - if (itsDebugFlag) System.out.println("clearLogPanel"); - - itsParamName="None"; - itsStartTime="2001-01-01 00:00:00"; - itsEndTime="2005-12-31 23:59:59"; - setMostRecent=false; - LogParamNameText.setText(itsParamName); - LogParamStartTimeText.setText(itsStartTime); - LogParamEndTimeText.setText(itsEndTime); - LogParamRecentOnlyCheckbox.setSelected(setMostRecent); - emptyLogList(); - } - - private void emptyLogList() { - if (itsDebugFlag) System.out.println("emptyLogList"); - - LogTable.removeAll(); - } - - private void enableNodePanel(boolean aFlag) { - if (itsDebugFlag) System.out.println("enableNodePanel "+aFlag); - - NodeInstancesText.setEnabled(aFlag); - NodeLimitsText.setEnabled(aFlag); - } - - private void enableLogPanel(boolean aFlag) { - if (itsDebugFlag) System.out.println("enableLogPanel "+aFlag); - - LogParamStartTimeText.setEnabled(aFlag); - LogParamEndTimeText.setEnabled(aFlag); - LogParamRecentOnlyCheckbox.setEnabled(aFlag); - } - - private void enableParamPanel(boolean aFlag) { - if (itsDebugFlag) System.out.println("enableParamPanel "+aFlag); - - ParamTypeSelection.setEnabled(aFlag); - ParamUnitSelection.setEnabled(aFlag); - ParamPruningText.setEnabled(aFlag); - ParamValMomentText.setEnabled(aFlag); - ParamRTModSelection.setEnabled(aFlag); - ParamLimitsText.setEnabled(aFlag); - } - - private void printParam(jOTDBparam aP) { - if (itsDebugFlag) System.out.println("printParam"); - - System.out.println("TreeID: "+aP.treeID()); - System.out.println("NodeID: "+aP.nodeID()); - System.out.println("ParamID: "+aP.paramID()); - - // Check if valid param - if (aP.nodeID() > 0) { - System.out.println("Name: "+aP.name); - System.out.println("Index: "+aP.index); - System.out.println("Type: "+aP.type); - System.out.println("Unit: "+aP.unit); - System.out.println("Pruning: "+aP.pruning); - System.out.println("ValMoment: "+aP.valMoment); - System.out.println("runtimeMod: "+aP.runtimeMod); - System.out.println("Limits: "+aP.limits); - System.out.println("Description: "+aP.description); - } - } - - private void printNode(jOTDBnode aN) { - if (itsDebugFlag) System.out.println("printNode"); - - System.out.println("TreeID: "+aN.treeID()); - System.out.println("NodeID: "+aN.nodeID()); - System.out.println("ParentID: "+aN.parentID()); - System.out.println("ParamDefID: "+aN.paramDefID()); - - // Check if valid param - if (aN.nodeID() > 0) { - System.out.println("Name: "+aN.name); - System.out.println("Index: "+aN.index); - System.out.println("Leaf: "+aN.leaf); - System.out.println("Instances: "+aN.instances); - System.out.println("Limits: "+aN.limits); - System.out.println("Dscription: "+aN.description); - } - } - - private void refreshLogPanel() { - if (itsDebugFlag) System.out.println("refreshLogPanel"); - - try { - if (itsDebugFlag) System.out.println("Trying to call searchInPeriod with: "); - if (itsDebugFlag) System.out.println("TreeID: "+SelectedTreeID.intValue()); - if (itsDebugFlag) System.out.println("NodeID: "+itsPresentNode.nodeID()); - if (itsDebugFlag) System.out.println("Start: "+itsStartTime); - if (itsDebugFlag) System.out.println("End: "+itsEndTime); - LogParamNameText.setText(itsPresentNode.name); - Vector aLogList=remoteValue.searchInPeriod(SelectedTreeID.intValue(), itsPresentNode.nodeID(),1,itsStartTime,itsEndTime,setMostRecent); - // Give our own model to the LogTable Object - LogTableModel tm = new LogTableModel(remoteValue,aLogList); - tm.setDebugFlag(itsDebugFlag); - LogTable.setModel(tm); - LogTable.setEnabled(false); - } catch (Exception e) { - System.out.println ("Value.searchInPeriod via RMI and JNI failed: " + e); - } - } - - private void selectWorkTree() { - if (itsDebugFlag) System.out.println("selectWorkTree"); - - itsSelectedTree = "None"; - int aRow= TreeTable.getSelectedRow(); - if ( aRow != -1) { - SelectedTreeID=new Integer((Integer)TreeTable.getValueAt(aRow, 0)); - SelectedTreeState=new String((String)TreeTable.getValueAt(aRow, 5)); - itsSelectedTree=TreeTable.getValueAt(aRow, 0).toString()+"."+ - TreeTable.getValueAt(aRow, 3).toString()+"."+ - TreeTable.getValueAt(aRow, 4).toString()+"."+ - TreeTable.getValueAt(aRow, 5).toString(); - } - selectedTreeTextField.setText(itsSelectedTree); - Date aD1 = new Date(); - System.out.println("Treeload Started: "+aD1.toString()); - Cursor hourglassCursor = new Cursor(Cursor.WAIT_CURSOR); - setCursor(hourglassCursor); - - // Start filling the TreeView - if (itsSelectedTree != "None") { - if (getTreeList()) { - itsSelectedTreeType=TreeTable.getValueAt(aRow,4).toString(); - } else { - if (itsDebugFlag) System.out.println("Error getting the Treelist from the server"); - } - } - Date aD2 = new Date(); - System.out.println("Treeload Finished: "+aD2.toString()); - Cursor normalCursor = new Cursor(Cursor.DEFAULT_CURSOR); - setCursor(normalCursor); - MainPane.setSelectedIndex(1); - } - - private void createTreeList(int aSelectedTreeID) { - if (itsDebugFlag) System.out.println("createTreeList for TreeID: "+aSelectedTreeID); - - itsSelectedTree = "None"; - - SelectedInputLabel.setText("Input from: OTDB via RMI"); - selectedTreeTextField.setText(itsSelectedTree); - TreeSelectButton.setEnabled(false); - - // set default failed values - SourceMenuInputFile.setSelected(false); - SourceMenuInputFile.setSelected(false); - isFile=false; - isOTDB=false; - MainPane.setSelectedIndex(0); - clearAll(); - - if (RMIServerName.length()==0 || RMIServerPort.length()==0 || - RMIRegistryName.length()==0 || OTDBUserName.length() ==0 || - OTDBPassword.length()==0 || OTDBDBName.length()==0) { - - JOptionPane.showMessageDialog(null,"You didn't set the RMI settings", - "Source selection warning", - JOptionPane.WARNING_MESSAGE); - } else { - String aS="rmi://"+RMIServerName+":"+RMIServerPort+"/"+RMIRegistryName; - if (openRemoteConnection(aS)) { - if (fillTreeTable(aSelectedTreeID)) { - if (itsDebugFlag) System.out.println("Table should be filled now"); - SourceMenuInputOTDB.setSelected(true); - isOTDB=true; - } else { - if (itsDebugFlag) System.out.println("Error in filling the table"); - } - } - } - } - - private void deleteTree(int aTreeID) { - if (itsDebugFlag) System.out.println("deleteTree: "+aTreeID); - - try { - if (aTreeID >= 0) { - int ans=JOptionPane.showConfirmDialog(null,"Are you sure to delete "+aTreeID+" ?", "Delete Tree", JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE); - switch(ans) { - case JOptionPane.YES_OPTION: - if (remoteMaintenance.deleteTree(aTreeID) ) { - if (itsDebugFlag) System.out.println("Tree "+ aTreeID+" deleted"); - clearTree(); - createTreeList(-1); - } else { - if (itsDebugFlag) System.out.println("ERROR: Tree "+aTreeID+" NOT deleted"); - } - } - } - } catch (Exception e){ - System.out.println ("maintenance.deleteTree via RMI and JNI failed: " + e); - } - } - - private void instanciateTree(int aTreeID) { - if (itsDebugFlag) System.out.println("instanciateTree: "+aTreeID); - - try { - if (aTreeID >= 0 && itsSelectedTreeType.equals("VItemplate")) { - int ans=JOptionPane.showConfirmDialog(null,"Are you sure to instanciate tree: "+aTreeID+" ?", "Instanciate Tree", JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE); - switch(ans) { - case JOptionPane.YES_OPTION: - int aNewTreeID=remoteMaintenance.instanciateTree(aTreeID); - if (aNewTreeID >= 0) { - if (itsDebugFlag) System.out.println("Created a new Tree with ID: "+aNewTreeID); - clearTree(); - createTreeList(aNewTreeID); - } else { - if (itsDebugFlag) System.out.println("ERROR: Tree "+aTreeID+" NOT instanciate"); - } - } - } - } catch (Exception e){ - System.out.println ("maintenance.instanciateTree via RMI and JNI failed: " + e); - } - } - private void changeTreeState(int aTreeID,String aStatus) { - if (itsDebugFlag) System.out.println("changeTreeState: "+aTreeID); - - try { - if (aTreeID >= 0) { - int ans=JOptionPane.showConfirmDialog(null,"Are you sure to change tree: "+aTreeID+" to state "+aStatus+"?", "Delete Tree", JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE); - switch(ans) { - case JOptionPane.YES_OPTION: - if (remoteMaintenance.setTreeState(aTreeID,remoteTypes.getTreeState(aStatus))) { - if (itsDebugFlag) System.out.println("Tree "+ aTreeID+" state changed to: "+aStatus); - clearTree(); - createTreeList(-1); - } else { - if (itsDebugFlag) System.out.println("ERROR: Tree "+aTreeID+" state NOT changed"); - } - } - } - } catch (Exception e){ - System.out.println ("maintenance.changeTreeState via RMI and JNI failed: " + e); - } - } -} - - - - - diff --git a/SAS/OTB/GUI/src/gui/treeModel.java b/SAS/OTB/GUI/src/gui/treeModel.java deleted file mode 100644 index f94a43bba9231002b4df5206d76c5e1cb296c2e2..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/src/gui/treeModel.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * treeModel.java - * - * Created on September 23, 2005, 11:55 AM - * - * To change this template, choose Tools | Options and locate the template under - * the Source Creation and Management node. Right-click the template and choose - * Open. You can then make changes to the template in the Source Editor. - */ - -package gui; - -import jOTDB.jOTDBinterface; -import jOTDB.jOTDBtree; -import jOTDB.jConverterInterface; -import java.util.Vector; -import javax.swing.table.AbstractTableModel; -import java.rmi.Naming; - - -/** - * - * @author coolen - */ -public class treeModel extends AbstractTableModel { - - boolean itsDebugFlag=false; - String headers[] = {"TreeID", "Creator", "CreationDate", "Classification", - "Type", "State", "MomID","Campaign", "Start Time", "Stop Time"}; - Object data[][]; - - public void setDebugFlag(boolean aFlag) { - itsDebugFlag=aFlag; - } - - public treeModel(jOTDBinterface aRemoteOTDB, Vector aTreeList){ - setTreeList(aRemoteOTDB,aTreeList); - } - - public int getRowCount() { - return data.length; - } - - public String getColumnName(int c) { - return headers[c]; - } - - public int getColumnCount() { - return headers.length; - } - - - public Object getValueAt(int r, int c) { - return data[r][c]; - } - - public void setTreeList(jOTDBinterface aRemoteOTDB,Vector aTreeList) { - data = new Object[aTreeList.size()][headers.length]; - - try { - - String aRMC="rmi://"+otbgui.RMIServerName+":"+otbgui.RMIServerPort+"/"+otbgui.RMIConverterName; - - jConverterInterface types = (jConverterInterface) Naming.lookup (aRMC); - - if (aTreeList.size() == 0) { - if (itsDebugFlag) System.out.println("Error:" + aRemoteOTDB.errorMsg()); - } else { - if (itsDebugFlag) System.out.println("Collected tree list"); - } - for (int k=0; k< aTreeList.size();k++) { -// if (itsDebugFlag) System.out.println("getTreeInfo(aTreeList.elementAt("+k+"),false)"); -// Integer i = new Integer((Integer)aTreeList.elementAt(k)); -// jOTDBtree tInfo = aRemoteOTDB.getTreeInfo(i.intValue(), false); -// if (tInfo.treeID()==0) { -// if (itsDebugFlag) System.out.println("No such tree found!"); -// } else { -// if (itsDebugFlag) System.out.println("Gathered info for ID: "+tInfo.treeID()); - jOTDBtree tInfo=(jOTDBtree) aTreeList.get(k); - data[k][0]=new Integer(tInfo.treeID()); - data[k][1]=new String(tInfo.creator); - data[k][2]=new String(tInfo.creationDate); - data[k][3]=new String(types.getClassif(tInfo.classification)); - data[k][4]=new String(types.getTreeType(tInfo.type)); - data[k][5]=new String(types.getTreeState(tInfo.state)); - data[k][6]=new Integer(tInfo.momID); - data[k][7]=new String(tInfo.campaign); - data[k][8]=new String(tInfo.starttime); - data[k][9]=new String(tInfo.stoptime); -// } - } - fireTableDataChanged(); - } - catch (Exception e) - { - System.out.println ("Remote OTDB via RMI and JNI failed: " + e); - } - } -} diff --git a/SAS/OTB/GUI/test/Makefile.am b/SAS/OTB/GUI/test/Makefile.am deleted file mode 100644 index 80b078babfce319726985c3e2478e96e6970c25e..0000000000000000000000000000000000000000 --- a/SAS/OTB/GUI/test/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -check_PROGRAMS = - -# programs to run through supplied checktools -CHECKTOOLPROGS = -#ENDCHECKTOOLPROGS - -TESTS = - -XFAIL_TESTS = - - -TESTS_ENVIRONMENT = lofar_sharedir=$(lofar_sharedir) - - -include $(top_srcdir)/Makefile.common